Open Read Write Close API ?
I searched this forum and other places on the web and found a few people ask how to open and close files using the API, though I've never actually seen a way of doing this as most replies say just use the VB I/O OPEN and CLOSE.
Example, is there an API equivelent of this: (Line input important)
'READ
Dim FileNum As Integer
FileNum = FreeFile
Open (App.Path & "\myfile.txt") For Input As FileNum
Do While Not EOF(FileNum)
ReDim Preserve myARRAY$(count)
Line Input #FileNum, myARRAY$(count)
count = count + 1
Loop
Close FileNum
'WRITE
Dim FileNum As Integer
FileNum = FreeFile
Open (App.Path & "\myfile.txt") For OutPut As FileNum
Print #FileNum, myText$
Close FileNum
Sorry if there's a 'typo' but I think you get the 'jist'.
I'd be really greatful if anyone could give me the equivelent API of this OPEN, READ (line) or WRITE, CLOSE.
TIA