It is currently Tue May 23, 2017 9:51 am



Welcome
Welcome to rfobasic

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today. **You are not required to provide truthful information to any registration questions. Be whomever you wish to be.!


Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: File.dir
Unread postPosted: Fri May 05, 2017 3:54 pm 
Offline

Joined: Mon Apr 24, 2017 9:12 pm
Posts: 30
Location: Melbourne, Australia
I am continuing to struggle with the RfoBasic! paths...

I have the following directory setup :
sdcard
rfo-basic
data
bob ! this directory is in the data directory
rob ! this directory is in the bob directory
file-2 ! this file is in the rob directory
file-1 ! this file is in the bob directory
source
.......

I have the following questions:
1) I would like to print the list of all directories and files residing in the data directory.
What is the correct pathname for file.dir ?
2) I would like to print the list of all directories and files residing in the source directory.
What is the correct pathname for file.dir ?
3) Is there a way to access (read/write) from/into outside of the rfo-basic directory

_________________
Stanton's law: When things can not go wrong, they will still go wrong...


Report this post
Top
 Profile  
 
 Post subject: Re: File.dir
Unread postPosted: Fri May 05, 2017 4:02 pm 
Offline
User avatar

Joined: Tue Jan 03, 2012 9:31 am
Posts: 5518
Location: Paris, France
1) dir "",d$[],"/"
debug.on : debug.dump.array d$

2) dir "../source",d$[],"/"
debug.on : debug.dump.array d$[]

3) dir "../..",d$[],"/"
debug.on : debug.dump.array d$[]

Nicolas

_________________
- Creator of the Android BASIC! Compiler


Report this post
Top
 Profile  
 
 Post subject: Re: File.dir
Unread postPosted: Fri May 05, 2017 5:46 pm 
Offline

Joined: Mon Apr 24, 2017 9:12 pm
Posts: 30
Location: Melbourne, Australia
Thank you.

Do you know the answer to my third question ?

_________________
Stanton's law: When things can not go wrong, they will still go wrong...


Report this post
Top
 Profile  
 
 Post subject: Re: File.dir
Unread postPosted: Fri May 05, 2017 8:20 pm 
Offline
User avatar

Joined: Tue Jan 03, 2012 9:31 am
Posts: 5518
Location: Paris, France
Answer to 3 is Yes, use "../../path to folder or file" to access (r/w) filesystem out of rfo-basic/ folder

_________________
- Creator of the Android BASIC! Compiler


Report this post
Top
 Profile  
 
 Post subject: Re: File.dir
Unread postPosted: Fri May 05, 2017 11:38 pm 
Offline

Joined: Mon Apr 24, 2017 9:12 pm
Posts: 30
Location: Melbourne, Australia
Thank you again !

It seems such a pity that you may not continue with your involvement with Rfo-Basic! It is really the only EASY way to develop apps for Android.

_________________
Stanton's law: When things can not go wrong, they will still go wrong...


Report this post
Top
 Profile  
 
 Post subject: Rfo-Basic! Editor (V 0.3) Beta
Unread postPosted: Sat May 06, 2017 12:13 am 
Offline

Joined: Mon Apr 24, 2017 9:12 pm
Posts: 30
Location: Melbourne, Australia
I have uploaded BasicEditor IDE (version 0.3 BETA) to my website heromed.com.au

_________________
Stanton's law: When things can not go wrong, they will still go wrong...


Report this post
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
suspicion-preferred