Hi. Im trying to understand the commands that control the directory and things like that. For my current project, I need to understand how to access a file over there, or how to save a file there. But I cant grasp the commands that does that. Here is a small code:
set display mode 1024,768,32
do
cls
print " Input 'exit' to exit"
input " Input path: ",path$
if path$="exit" then end
if path exist(path$)
print " Path exist: '",path$,"'"
set dir path$
perform checklist for files
if checklist quantity()>0
check=checklist quantity()
find first
print " : ",get file name$()
for n=1 to checklist quantity()
find next
print " : ",get file name$()
next
endif
else
print " Error, path does not exist: '",path$,"'"
endif
wait key
loop
. You input a path, than the program determines if the path exist or not, and then it should make a list over the files in that directory. The two first parts work, but not the last one. All it does it list up all the files in the folder where the .exe lies. What am I doing wrong?