PDA

View Full Version : TAB format



Lancill
03-04-2003, 09:59 AM
Hi all, I need to format a .txt file with tab on every line. I need to know how I can add tab spaces before the line. The same thing that in C works with "\t" .
For example my input file.txt has 3 lines:
ONE
TWO
THREE

I need this output on the same file (with tab spaces, not with underscore :o) ):
______ONE
______TWO
______THREE

Thanks!
Bye

Worm
03-04-2003, 10:56 AM
Create a New Constant in the Project Settings
Name it: #ASC_TAB#
Value: 9

Whenever you need the TAB to be outputted, use #ASC_TAB# instead.

TextFile.Write ("C:\Text1.txt", "#ASC_TAB#Brad")

Lancill
03-04-2003, 02:39 PM
It could be a good idea /ubbthreads/images/icons/smile.gif

Thx