How do I create a formatted .txt file
Blitz3D Forums/Blitz3D Programming/How do I create a formatted .txt file
| ||
| How do I create a formatted .txt file, that can be loaded into word pad etc.. |
| ||
| www.wotsit.org might help http://www.wotsit.org/download.asp?f=wword60t |
| ||
| what do you mean with formated ? You can simply create a .txt file with WriteFile and WirteLine commands ! In txt files it is not possible to set color or font ! It's just plain text. |
| ||
| @klaar with formatted i guess he mean what the txtfile headers are. Every file has a header that identifies certain aspects of that file. Wotsit is a great resource for this.... hope it helps l8tr |
| ||
| okay, but i think txt files got no headers .. well if i open them in a hexeditor there is just plain text. |
| ||
| I guess he means something from here: http://www.blitzbasic.com/codearcs/codearcs.php?cat=8 |
| ||
| @Klaas yes but the issue @ hand is formatted txt.... |
| ||
| Thanks all, by formatted i mean saving a file with tabs in. |
| ||
Tab$ = Chr$(9)
stream = WriteFile("C:\Formatted.txt")
WriteLine(stream,Tab$+"This")
WriteLine(stream,Tab$+Tab$+"Works")
WriteLine(stream,Tab$+Tab$+Tab$+"Fine!")
CloseFile(stream) |