On file output, makes newline every time
Author |
Message |
noteric
|
Posted: Mon Mar 17, 2008 4:40 pm Post subject: On file output, makes newline every time |
|
|
I am trying to make a program that outputs a series of characters to a file. The problem I keep running into, (even when I use seek and tell) is the following : After Turing outputs a character to a file, it creates a newline for the next character. The effect of this is a thin, one character wide, tall output file, when a "regular" text format is desired.
The question I have is this : Can anyone help me eliminating the "newline after every character" problem listed above.
Thanks in Advance. |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
Tony

|
Posted: Mon Mar 17, 2008 4:51 pm Post subject: RE:On file output, makes newline every time |
|
|
instead of put character use put character..
the .. will suppress the newline. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
 |
Mackie

|
Posted: Mon Mar 17, 2008 4:51 pm Post subject: RE:On file output, makes newline every time |
|
|
Well, if you use 'put' for file output just use '..' at the end of the line.
Turing: | put : fileStream, output .. |
EDIT:
Tony beat me to it... |
|
|
|
|
 |
|
|