Hi all,
i am reading a text file from disk using ifstream,when i write back the same file on disk using ofstream.it omits the last characters.For example i read 2600 characters but when i write back on disk,the characters printed are about 2533.
Hi all,
i am reading a text file from disk using ifstream,when i write back the same file on disk using ofstream.it omits the last characters.For example i read 2600 characters but when i write back on disk,the characters printed are about 2533.
[edit]Unless you're converting DOS newlines into *nix newlines,[/edit] I'd say you have a bug in you code
Let's see a small sample of code the reproduces the issue.
gg
Last edited by Codeplug; 09-03-2007 at 12:07 AM.