Computer Science Canada On file output, makes newline every time |
Author: | noteric [ 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. |
Author: | Tony [ 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. |
Author: | Mackie [ 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.
EDIT: Tony beat me to it... |