I have used in my program the OPEN statement like this:
What if I copy the program to another computer? If there is no "C:\qbasic\game" directory it won't find the file.
It isn't working when I try this way:
Is there any way in QB to open file from the CURRENT directory?
Code:
OPEN "c:\qbasic\game\something.dat" FOR INPUT #1
It isn't working when I try this way:
Code:
OPEN "something.dat" FOR INPUT AS #1
Is there any way in QB to open file from the CURRENT directory?