Saving and loading

  • Thread starter Thread starter Jon
  • Start date Start date
J

Jon

i want to save 3 arrays to a file, one for time, one for
A0 and A1

so the file would read like this, for example:

TIME A0 A1

5 1 1
10 20 30


as the data is used for a graph to be plotted. It is
a ".csv" file.

And be able to load it again.

Any help would be much appreciated, many thanks, jon.
 
Try this, and FileSystem.Read to get the data back



Private Sub SaveData()

Dim fn As Int32



fn = FileSystem.FreeFile

FileSystem.FileOpen(fn, "C:\\ToDoData.TXT", OpenMode.Output,
OpenAccess.Write, OpenShare.LockWrite)

FileSystem.Write(fn, "TEXT")



FileSystem.FileClose()

End Sub
 
Back
Top