View Full Version : How do you add tab spaces to a text file
j-mation
04-17-2007, 04:39 AM
I'm in the process of learning Lscript but I can't find a command to add tab spacing to a text file. This is important for its end use. Currently if I put a tab space in quotes it turns into a single space not a tabbed space in my resulting text file. e.g
myfile.write(" ");
Any help would be greatly appreciated.
dpont
04-17-2007, 05:01 AM
\t
Denis.
j-mation
04-17-2007, 05:41 AM
when I type:
Mytextfile.write(\t);
or
Mytextfile.write(\t+"hello world");
I get an error from that line of code.
dpont
04-17-2007, 06:05 AM
You must include it inside the quotes.
Denis.
j-mation
04-17-2007, 06:19 AM
Got it working thanks. Is their a more extensive lscipt app in html with searching available as the only one I have is in a PDF and is not very good. And the one that comes with the lightwave install seems to missing a lot of this basic info.
thanks again, for taking the time to answer such a simple question.
dpont
04-17-2007, 07:02 AM
You have Lscript docs in LW SDK html directory,
Dodgy have also excellent docs (and usefull Lscripts):
http://www.newtek.com/forums/showthread.php?t=66624
Control Structures in Lscript are based also on C language,
so you can learn a lot also in C.
Denis.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.