Hello.
Can anybody tell me how to use one button for writing to a *.txt file and another button for reading from the same file.
Sub btnRead_click
FileOpen(c1,"txt.txt",cRead)
s=FileRead(c1)
label1.text=s
FileClose(c1)
End Sub
........reads the first line of the "txt.txt",when the button is clicked second time an error message shows.
If I place the FileOpen line in "Sub App_Start" the file is read well,but how do I open a cWrite connection then?
P.S. I have failed to get a clue in the Erel's TextFiles tutorial.:sign0085:
Can anybody tell me how to use one button for writing to a *.txt file and another button for reading from the same file.
Sub btnRead_click
FileOpen(c1,"txt.txt",cRead)
s=FileRead(c1)
label1.text=s
FileClose(c1)
End Sub
........reads the first line of the "txt.txt",when the button is clicked second time an error message shows.
If I place the FileOpen line in "Sub App_Start" the file is read well,but how do I open a cWrite connection then?
P.S. I have failed to get a clue in the Erel's TextFiles tutorial.:sign0085: