I'm trying to use open a text file, i have place my text file int he public/resources folder, but RB says it can't find it. any idea what i'm doing wrong? I'll keep working on it thanks.
Unless you want your data files to be serve-able on the network, you shouldn't put them under the public folder. Make your own folder in rbp. Here's code to open a text file in c:\rbp\myfolder\ assuming that Run BASIC is installed in c:\rbp\. open "myfolder\testing.txt" for input as #1 print input$(#1, lof(#1)) close #1 -Carl
Hello from 11 years in the future... Use this for what you are looking for:
' print DefaultDir$ ' The folder path where Run BASIC files are read/written by default print ProjectsRoot$ ' The folder path where Run BASIC keeps programming projects print ResourcesRoot$ ' The folder path where Run BASIC keeps web servable files '