forums

TNT Basic Forums > Programming Q&A
TNT and TextEdit Text Files
< Last Thread     Next Thread >
Author
Thread        Post A Reply

10-09-2004 20:46

Posted by:
MapMaker

Location:
Edmonton, Alberta (Canada)

Click Here to Email MapMaker   Find more posts by MapMaker

Does anyone know what text format TNT uses in its text format?
It is not able to read text files that I have manually created, and says it doesn't recognize the file type (and yes, I made sure that it was not in rtf)

And when I use TNT to create text files, the OS doen't originally recognize the files.

help?
MapMaker

10-10-2004 19:18

Posted by:
MapMaker

Location:
Edmonton, Alberta (Canada)

Click Here to Email MapMaker   Find more posts by MapMaker

Help!!!

Has anyone ever got TNT to read out a text file?
If so could you explain what kind of file/encoding you used?

Thanks,
MapMaker

10-11-2004 17:59

Posted by:
matteo

Location:
Venice, ITALY!

Click Here to Email matteo   Find more posts by matteo

I remember that was tricky, I mean you have to write "text" twice in the command somewhere, i.e. you created a file with the TNT encoding, not a real text file, but you can also make text files somehow. Alas, I dont remember...

10-12-2004 05:41

Posted by:
Wil Hostman

Find more posts by Wil Hostman

Rather Simple, really

when opening the file for output, set type code to "TEXT" and type to "TEXT", the output becomes return delimited text.

The program uses the TEXT type code, and its own assigned creator code.

External files need to be restamped with a file typer for the program to read it. (there are several good ones on the market.)

OSX uses two methods for notig file types: extensions (.TXT .AW6, etc)) and the older type and creator codes. The latter are NOT really used much, but are included for carbon apps like TNTBasic.

You can, however, edit such a file with Text Edit.

I've used ti as an output method for saving to text files. If one were really bored, one could format it as RTF or HTML... but that would be really a pain. ;)

All times are GMT        Post A Reply

Forum Jump:
< Last Thread     Next Thread >

< Contact Us - TNT Basic >

Powered by: vBulletin Lite Version 1.0.1 Lite
Copyright © Jelsoft Enterprises Limited 2000.