Extra character in complemented file.
Extra character at the end of complemented (~) file.
--------------------------------------------------------------------------------
I am developing a program to complement the contents of a file (say .txt) and then store it in another file of the same extension using the complement operator, but everytime i do that, there is an extra character added at the end of the complemented file. I am copying the contents of the file to another using fgetc().
Anyone who can help me solving this bug?
Thanks...
|