Z
zurg
Hi!
I have a specific problem - I need to take some informations from a .txt
file from another computer...
I use OpenFile and the program runs perfectly...
But when I run it second time I get an error... I'm unable to give it
characterist because I have to run the program on a computer without
VS.Net...
I know only that program stops for about 10s on a line with "OpenFile"
command and there returns an error.
But if I wait before re-starting my program about a minute at the second
start it works fine... So mayby it leaves something in memory?
Help!
Code look like this (short version):
Public Sub Main
Dim fileadress As String
Dim q As Integer
Dim line As String
q = FreeFile()
fileadress = \\somenetworkadres\cmdata\file.txt
FileOpen(q, fileadress, OpenMode.Input)
Do Until EOF(q)
line = LineInput(q)
(Here I get the information from this line to my program)
Loop
FileClose(q)
End Sub
I have a specific problem - I need to take some informations from a .txt
file from another computer...
I use OpenFile and the program runs perfectly...
But when I run it second time I get an error... I'm unable to give it
characterist because I have to run the program on a computer without
VS.Net...
I know only that program stops for about 10s on a line with "OpenFile"
command and there returns an error.
But if I wait before re-starting my program about a minute at the second
start it works fine... So mayby it leaves something in memory?
Help!
Code look like this (short version):
Public Sub Main
Dim fileadress As String
Dim q As Integer
Dim line As String
q = FreeFile()
fileadress = \\somenetworkadres\cmdata\file.txt
FileOpen(q, fileadress, OpenMode.Input)
Do Until EOF(q)
line = LineInput(q)
(Here I get the information from this line to my program)
Loop
FileClose(q)
End Sub