How to add files to a created folder?

Post Reply
User avatar
Dav
Posts: 279
Joined: Tue Dec 30, 2014 5:12 pm
My devices: iPad Mini, iPod Touch.
Location: North Carolina, USA
Contact:

How to add files to a created folder?

Post 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

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: How to add files to a created folder?

Post 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.

User avatar
Dutchman
Posts: 851
Joined: Mon May 06, 2013 9:21 am
My devices: iMac, iPad Air, iPhone
Location: Netherlands
Flag: Netherlands

Re: How to add files to a created folder?

Post 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'

User avatar
Dav
Posts: 279
Joined: Tue Dec 30, 2014 5:12 pm
My devices: iPad Mini, iPod Touch.
Location: North Carolina, USA
Contact:

Re: How to add files to a created folder?

Post 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

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: How to add files to a created folder?

Post by Mr. Kibernetik »

So you made file transfer in sB itself? :shock:
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.

User avatar
Dav
Posts: 279
Joined: Tue Dec 30, 2014 5:12 pm
My devices: iPad Mini, iPod Touch.
Location: North Carolina, USA
Contact:

Re: How to add files to a created folder?

Post by Dav »

Mr. Kibernetik wrote:So you made file transfer in sB itself? :shock:
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

Post Reply