Alright, Ill do that, but anyways I got stumped on this... I know what is wrong, with my code but the fix seems a little bit to complex for VB .NET, its supposed to make things simple, and ive never seen it do anything with one character per array value like in C and C++, where you cant store strings in arrays... which the code hints in the code im using now is telling me one byte per... this is code I altered quite a bit from the example I found on the internet, so I might have screwed something up. But basicly what my code is supposed to do is:
open up the file elementalEditor.dat, if it doesnt exist create it, then check the size of the file, if its 0 (meaning it was just created, atleast I think) then write default values to it).
' Load Settings
Dim oFile As System.IO.File
Dim oFileStream As System.IO.FileStream
oFileStream = oFile.Open("elementalEditor.dat", IO.FileMode.OpenOrCreate)
If oFileStream.Length = 0 Then
' Write default settings to form
oFileStream.Write(, 0, 100000000)
End If
The values I write to it will be in a simple form, atleast to me, one configuration value per line, so I can read through it one line at a time, take all the text on that line and put it into the shared configuration array.
Anyways know an eaiser way to write code to the file like that without having to do it like VB is telling me, one byte per value in array?