Page 1 of 1
How to add files to a created folder?
Posted: Tue Dec 30, 2014 9:43 pm
by Dav
Hello. I am enjoying Smart Basic very much! It is a well made product.
My question is about adding files to user created folders. I can create a new folder and add .txt files using the plus (+) icon, but I haven't discovered how to add image & music files to the folder for my program to use. Is there a way to do that? I have files created on my laptop that I would like to use in Smart Basic. I also would like to use an IDE that I have made to code in, and transfer the txt file to Smart Basic. Some other apps I have can connect my ipad & laptop via a wifi connection. I think it is a useful feature to have.
I am a basic user from way back and have had several basic programming websites over the years. Looking forward to learning & using smart basic! Thanks for making it.
- Dav
Re: How to add files to a created folder?
Posted: Tue Dec 30, 2014 10:10 pm
by Mr. Kibernetik
Nice to see you here, Dav!
Smart BASIC is designed to use Dropbox for files transfer. Please read "Notes" section in documentation for details.
Re: How to add files to a created folder?
Posted: Tue Dec 30, 2014 10:13 pm
by Dutchman
The easiest way is via Dropbox. Via smart Basic you can directly acces the contents, once you have given the command "option dropbox on" in a one-line 'program'
Re: How to add files to a created folder?
Posted: Wed Dec 31, 2014 2:25 pm
by Dav
Thanks for the quick reply. I see now. Not being a dropbox user (yet) I had skipped over that part in the help files. Also, thanks for providing the PDF download of the help to study.
I was able to put files into folders by downloading them off my web space using smat Basics HTTP + FILE commands. Looking for an offline solution, the same thing worked over my home wifi network using an app called WiFiles. I can transfer without uploading the files to the web -- Laptop to iPod via WiFiles, then iPod to iPad using smart Basic commands.
The Dropbox seems like the best solution though, so I will sign up for an account.
Thanks again.
- Dav
Re: How to add files to a created folder?
Posted: Wed Dec 31, 2014 2:39 pm
by Mr. Kibernetik
So you made file transfer in sB itself?
That's cool.
When you activate Dropbox in sB you will find it very useful. Usually links on this forum are Dropbox links, so you can transfer programs from forum to your Dropbox very easily.
Re: How to add files to a created folder?
Posted: Wed Dec 31, 2014 5:37 pm
by Dav
Mr. Kibernetik wrote:So you made file transfer in sB itself?
That's cool.
It was easy after seeing the example in the help documentation. This morning I was able to transfer directly from laptop to smart basic without using the WiFiles app on the ipod as a go between. I just start a small HTTP server I made on my PC, and point the smart Basic code to it instead, for example:
Code: Select all
http "192.168.0.xxx/example.txt" getdim m '<<< point to file on my LAN IP
file "example.txt" writedim m
It downloaded the file fine. This suits me because I like to code on my laptop instead of the ipad.
I'm working on a more complete program now to download a list of files at once. I'm also adapting my IDE to accept smart Basic syntax.
I'm really liking smart Basic!
- Dav