Forums Register Login

how to insert carriage return

+Pie Number of slices to send: Send
Program to convert ebcidc to unicode
I need to insert a carriage return after every bytes of data read.please tell me how this can be done.


+Pie Number of slices to send: Send
Carriage return has code 13 - see here: http://www.asciitable.com/
You may write it to the file with a command: fout.write( 13 );
+Pie Number of slices to send: Send
Thanks.Can i insert the same while reading bytes.
+Pie Number of slices to send: Send
 

Ireneusz Kordal wrote:Carriage return has code 13 - see here: http://www.asciitable.com/
You may write it to the file with a command: fout.write( 13 );


Don't write 13. Write '\r'. It's the exact same value but easier to read.
Did you just should on me? You should read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 6014 times.
Similar Threads
Using streams
Writing Hex Values to a file
how to encrypt data into an image
unable to preserve newline
Unable to read Arabic data
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 06:25:14.