OPENFILE(0,"filelist.txt",TRUE)

Previous topic - Next topic

Hemlos

If the file doesnt exist...crash.

Code (glbasic) Select
ok=OPENFILE(0,"filelist.txt",TRUE)


And if the the file does exist, and the file is extremely large(around @10meg) , this will not find the file:
Code (glbasic) Select
ok=DOESFILEEXIST(fname$)
ok returns false, which is incorrect.         
Bing ChatGpt is pretty smart :O

MrTAToad

#1
Cant say OPENFILE crashes  - ok just returns 0

However, DOESFILEEXIST does seem to just return 0

Hemlos

Quote from: MrTAToad on 2009-May-31
Cant say OPENFILE crashes  - ok just returns 0

Wish i had a super computer like you :P

When it comes to errors and bugs with windows file system commands....
i notice a huge difference in the way the computers are affected, and the reaction they have are significant.

On one computer it might find a big file, and on another...it wont.
And the crash depends on the computer too.
Bing ChatGpt is pretty smart :O

MrTAToad

There shouldn't be any difference between file I/O - if there was most other software would have problems too :)

Wonder if Gernot is using C filing commands or accessing the WIN API directly ?