hello
in my program i want to set files paths for data txt files my program will generate. there will be a menu options for this setup. I want to be able to enter the files paths into a random file then let the system decide if they exists if if not create them. i hope i am being clear here if you have a questions about what i have typed please please asks.
Badger
DataPath$ = "C:\my dir\my subdir\"
IF _FILEEXISTS(DataPath$ + "temp.txt") THEN
'temp.txt exists inside the datapath
ELSE
'create the file
OPEN DataPath$ + "temp.txt" FOR OUTPUT AS #1
PRINT #1, "ScreenWidth = 640"
PRINT #1, "ScreenHeight = 480"
CLOSE
END IF