T tvrman Member Licensed User Aug 27, 2007 #1 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?
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 B4X founder Staff member Licensed User Longtime User Aug 27, 2007 #2 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.
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.
T tvrman Member Licensed User Aug 27, 2007 #3 sjee i never saw this many thanks erel :sign0188::sign0188: