how to handle CR key

when reading from a text file i am getting D(in hex)for Carrige Return. i am writng the character back in another file and it is printing it as "empty rectangle".
how can i have a CR instead of "empty rectangle" in the output file.
pl. help

Comments

  • : when reading from a text file i am getting D(in hex)for Carrige Return. i am writng the character back in another file and it is printing it as "empty rectangle".
    : how can i have a CR instead of "empty rectangle" in the output file.
    : pl. help
    :
    [blue]What function are you using when reading?
    When writing? Also, if you reading text files symbol-by-symbol you should use the binary type when opening/creating these files.

    Usually, if you deal with text files - use [b]fopen()[/b] and [b]fgets()[/b]/[b]fputs()[/b] to read/write.[/blue]
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion