[C++] Reading, converting and saving .csv files
Posted on 2008-06-16
I have created a simple program in C++ (using Dev-C++) that opens a .csv file, removes every " (apostroph) and saves it to a new file.
This works great except i have some strange input files now.
The input file is 8MB in size, if i open it in notepad for example, copy everything in a new file in notepad and save it, its only 4MB in size...
If i load one of these files in my program, my program only exports a file with 32 bytes of 'blocks' (the char you see in windows when the current font does not have that char.
Looks like such a file is in another format (non ansi text?). Is there an easy way to make my software support this?
Opening and saving in a new textfile is'nt really helping our users speed up converting this files. This way they could have done a simple find-replace in their texteditor for the same result.