Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

HotPaw BASIC for iPad - I/O questions

39 views
Skip to first unread message

Fred McKenzie

unread,
Jan 23, 2013, 6:21:46 PM1/23/13
to
I was never able to paste a program into HotPaw BASIC on the iPad.
Perhaps a line-at-a-time would work, but that could be a hassle.

Then I came across "iPadFileExplorer" <http://www.ipadfileexplorer.com>.
This computer program is capable of transferring files to and from the
iPad. It was necessary to edit the file, "_dirlist.txt" so HotPaw could
see the added file. Then I found that an unlisted file would be added to
the directory by loading it.

Now I am able to write a program that will read data from a file, create
a new file, print to an AirPrint printer and E-Mail a file.

Questions:

1. Is there some way to write data to a file in another App's directory
using a path? For example, would it be possible to use the OPEN command
as OPEN "/path/filename.txt" for output as #1? If so, how would the
path be constructed?

2. Printing to an AirPrint printer uses the OPEN command as OPEN
"lpt1:" FOR OUTPUT AS #1. What other uses of the OPEN FOR OUTPUT
command are available? Would it be possible to use it something like an
OPEN IN command, so data can be sent to another APP?

3. I need to use a fixed-width (mono-spaced) font for text data to be
correctly aligned. Printing to my AirPrint printer results in such a
font being used, although tabs are printed as tiny rectangles. However,
When E-Mailing a file, a generic font is used that does is not align
correctly. Is there any way to change that?

Fred

R.Nicholson

unread,
Dec 4, 2013, 11:56:07 AM12/4/13
to
On Wednesday, January 23, 2013 3:21:46 PM UTC-8, Fred McKenzie wrote:
> 1. Is there some way to write data to a file in another App's directory

The iOS security sandbox (part of Apple's OS) prevents any App store
app from writing to any other apps directory.

> 2. ...

See above.

> 3. When E-Mailing a file, a generic font is used that does is not align
> correctly. Is there any way to change that?

Email is sent as plain ascii text (which has no font info), Thus it is up
to the receiving email client/program to choose a font to use for
display.

IMHO. YMMV.
--
rhn A.T nicholson d.0.t C-o-M
http://www.nicholson.com/rhn/basic/
0 new messages