GLBasic forum

Main forum => Bug Reports => Topic started by: Hemlos on 2009-May-31

Title: OPENFILE(0,"filelist.txt",TRUE)
Post by: Hemlos on 2009-May-31
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.         
Title: Re: OPENFILE(0,"filelist.txt",TRUE)
Post by: MrTAToad on 2009-May-31
Cant say OPENFILE crashes  - ok just returns 0

However, DOESFILEEXIST does seem to just return 0
Title: Re: OPENFILE(0,"filelist.txt",TRUE)
Post by: Hemlos on 2009-May-31
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.
Title: Re: OPENFILE(0,"filelist.txt",TRUE)
Post by: MrTAToad on 2009-Jun-01
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 ?