![]() |
Problem with files - Urgent
hello i am new to this forum.. so i need your help to solve my c++ program to run..
i am using files:- in fact i am reading data from a file name p.txt 16 bytes @ a time and then saving the data in the file c.txt till eof p.txt.. so i have to read the 1st 16 bytes from p.txt and save it in c.txt and then the next 16 bytes are read and then rewritten in c.txt till eof.. i have written the codes but i am having this problem:- p.txt: aaaaaaaaaaaaaaaabbbbbbbbbbbbbbbb c.txt: aaaaaaaaaaaaaaaabbbbbbbbbbbbbbbb˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙ so why ˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙ is copied to the file c.txt it shoule be same as that in the p.txt file please help me how to solve this problem the code is:- Code:
#include<iostream.h> |
Re: Problem with files - Urgent
try this one...just look at it carefully and i believe u will identify the mistake u were making...
Code:
void main() { |
| All times are GMT +5.5. The time now is 19:28. |