R
Ritesh
Hi!!!!!!!!!!!
I am a final year engineering student. I am making a final year
project on reed-solomon codec in C using VC++ 6.0. The input to the
program can be any file that the user wants to encode and then later
decode.
This is where I have a problem. I am using fopen, fscanf and fprintf
for input output purposes. I know these are the simple and std means
of doing so. Unfortunately when I run the program the file pointer for
the output stream (sometimes) start printing a few junk characters
(any where in the middle of the file) and then jumps back many places
and starts printing from there. When this error occurs it prints a few
lines and then stops printing completely.
I am NOT USING ANY function in my program that makes the file pointer
jump back.
Can anyone please tell me how I can solve this problem? Your advice
will be highly appreciated. Thank you for your time.
Sincerely,
Ritesh
I am a final year engineering student. I am making a final year
project on reed-solomon codec in C using VC++ 6.0. The input to the
program can be any file that the user wants to encode and then later
decode.
This is where I have a problem. I am using fopen, fscanf and fprintf
for input output purposes. I know these are the simple and std means
of doing so. Unfortunately when I run the program the file pointer for
the output stream (sometimes) start printing a few junk characters
(any where in the middle of the file) and then jumps back many places
and starts printing from there. When this error occurs it prints a few
lines and then stops printing completely.
I am NOT USING ANY function in my program that makes the file pointer
jump back.
Can anyone please tell me how I can solve this problem? Your advice
will be highly appreciated. Thank you for your time.
Sincerely,
Ritesh