Page 1 of 1

PostPosted: Mon Jul 22, 2002 4:12 pm
by Charles Strickland

When I output the lines of a file using graphics (puts), I am getting a little suqare ate the end of each line of output. I am sure it's a cr or lf, but I cannot get rid of it. Any suggestions?


PostPosted: Tue Jul 23, 2002 12:30 pm
by guy
There are a variety of quaint inconsistencies in the handling of carriage return and linefeed (or perhaps newline) in the CE version of PocketC. The rule is "never trust it to do what you want, or what you expect it to do".

What you need to do is to get rid of the delimiters from the ends of the line once you've read it from the file, then use putsl() to write the line.

You'll probably need to get rid of both a CR and an LF.

PocketC CE API interface:
PCForm and CE API forum: