This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Writing to text files...

Old posts that have not been replied to for several years.
Locked
J
Jimbo

Post by Jimbo »

I know that [open <file> a] opens it so that when you write to it, the inputted text is put onto a new line. Is there any way to write to a text file so that it continues on the same line?
M
Mordred

Post by Mordred »

This is from the TCL Reference manual regarding the PUTS command.

Puts normally outputs a newline character after string, but this feature may be suppressed by specifying the -nonewline switch.
http://tmml.sourceforge.net/doc/tcl/puts.html
J
Jimbo

Post by Jimbo »

Thanx, but where do i put this -nonewline into the code?
M
Mordred

Post by Mordred »

puts ?-nonewline? ?channelId? string

it's all in the manual.
J
Jimbo

Post by Jimbo »

LOL, sorry...didnt see it!!!

Thanx alot
Locked