Copy .csv file to .txt

S

sakieboy

I am attempting to Copy a .csv file to a text file. When I use CopyFile or objFile.Copy it copies the file and the same
number of bytes exists. When I do this manually, i.e. single select the .csv file, right-click, open with Wordpad, or Word, (I believe Notepad will give me the same results as CopyFile), the number of bytes change, although Windiff says "They are identical!!!", they actually are not. I'm currently attempting to get some software that checks hex comparisons between files, so that I can differentiate between the files. The funny part about this is that the "Manual save as" file that was created is the one that works, and not the CopyFile. Any suggestions?
 
J

Jezebel

..csv is a text format: just structured in a particular way. The number of
bytes may well change if you go via Word (no idea about Wordpad) because
Word seems to translate capriciously between ASCII and UNICODE. How are you
measuring the size of the file? The size reported by Explorer is the number
of disk sectors occupied by the file multiplied by the sector size, which is
not the same as its actual length in bytes.



sakieboy said:
I am attempting to Copy a .csv file to a text file. When I use CopyFile
or objFile.Copy it copies the file and the same
number of bytes exists. When I do this manually, i.e. single select the
..csv file, right-click, open with Wordpad, or Word, (I believe Notepad will
give me the same results as CopyFile), the number of bytes change, although
Windiff says "They are identical!!!", they actually are not. I'm currently
attempting to get some software that checks hex comparisons between files,
so that I can differentiate between the files. The funny part about this is
that the "Manual save as" file that was created is the one that works, and
not the CopyFile. Any suggestions?
 
S

sakieboy

I go to the properties of the file and examine the size. Trying to figure out a way to Save the file in the format that Wordpad and Word are leaving it in....when I view my file in Notepad, the lines are wrapping, in word they are not, there is a strange character in Notepad, not visible in word
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top