Help!

tvrman

Member
Licensed User
Hello,

FileOpen(c1,"Setup.ini",cRead)
r = FileRead (c1)

Do Until r = EOF

r = FileRead (c1)
Msgbox(r)
FileSearch (alFiles, r, "*.*")


Loop


I read an Setup file with follow contents
c:\
c:\
m:\Video
M:\Person

after running error could not find parth of path c:\document and settings\@eof@

i have no idea why?
 

Erel

Administrator
Staff member
Licensed User
You should change your code to:
B4X:
FileOpen(c1,"Setup.ini",cRead)
r = FileRead (c1)
Do Until r = EOF
  msgbox(r)
  FileSearch (alFiles, r, "*.*")
  r = FileRead (c1)
Loop
In your code you are using r even when it is equal to EOF.
 
Top