E
emanshu
Hi,
i am storing data read from some file (text,pdf,gif...) into std::list
using push_back function available for list.
and my list type is string.( std::list<string> mylist)
after storing whole file in list i am trying to writing the data stored
in list into new file of same format.
if the source file is text then destination new file obtained is
correct but if it is pdf then the destination file obtained is not
correct, even size is less than the original file.
i am opening the file using fopen() call in BInary Mode always..
well, if i write the data without using the std::list, i am getting the
expected correct results.
i am worrying why this is not working in case of std::list if data is
non textual..
if anybody is having any idea i will really appreciate the response.
thanks,
Munish
i am storing data read from some file (text,pdf,gif...) into std::list
using push_back function available for list.
and my list type is string.( std::list<string> mylist)
after storing whole file in list i am trying to writing the data stored
in list into new file of same format.
if the source file is text then destination new file obtained is
correct but if it is pdf then the destination file obtained is not
correct, even size is less than the original file.
i am opening the file using fopen() call in BInary Mode always..
well, if i write the data without using the std::list, i am getting the
expected correct results.
i am worrying why this is not working in case of std::list if data is
non textual..
if anybody is having any idea i will really appreciate the response.
thanks,
Munish