Does anyone know if using Get # and Put # to place user defined variables into a output file requires that the files be placed sequentially?
i.e. can i execute the following, and reliably retrieve the data, or will it be corrupted since the output is not being done sequentially - there is no data for all records between numbers 2 - 499?
-The file is being created with the open statement. MyVar is a user defined variable.
i.e. can i execute the following, and reliably retrieve the data, or will it be corrupted since the output is not being done sequentially - there is no data for all records between numbers 2 - 499?
Code:
open "C:\Output.txt" for random as #1 len=len(MyVar)
put #1, 1, MyVar
put #1, 500, MyVar
close #1