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
: 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]
Comments
: 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]