Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 On file output, makes newline every time
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
noteric




PostPosted: 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
Sponsor
sponsor
Tony




PostPosted: 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.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Mackie




PostPosted: 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...
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: