forums

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

03-03-2002 15:33

Posted by:
Tony Rose

Click Here to Email Tony Rose   Find more posts by Tony Rose

Before I go spend a bunch of time trying to figure it out,can TNT Basic write files? Such as a text file that I could read in any wordproccesor?

03-04-2002 07:14

Posted by:
ERaZer

Find more posts by ERaZer

Short Answer: Yes
Long(er) Answer: Yes, but file handling is limited.

03-05-2002 22:36

Posted by:
Mark Tully

Find more posts by Mark Tully

Files, files...

Well TNT Basic actually writes files in binary format, so a text editor cannot edit them I'm afraid. Sorry about this, but only TNT Basic can read and write TNT Basic files currently.

An example is if you write a number, instead of being converted to text and written, it will always be written as 4 bytes in binary, a word processor will probably trip up on this. Strings are followed by a null byte, word processors don't like these either.

We'll address this issue when we update file handling at some point in the future.

Thanks for you patience,

Mark

03-06-2002 19:13

Posted by:
Tony Rose

Click Here to Email Tony Rose   Find more posts by Tony Rose

No Problemo

Ok,no problem. I was just considering making a program that could edit and create Quake 3 Config files with a graphic interface instead of having to mess around with them in their raw form(Text files),which can be quite intimidating for a newbie.

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.