09-13-2011 08:12 AM - edited 09-13-2011 08:13 AM
When I try to copy data from one file to other, Extra lines are getting inserted into the copied data.
I am actually reading chunks of data from the first file and writing it to the other by using 'Byte' count to read.
Whenever the no. of bytes read ends with the EOL, one extra line is getting inserted in the second file.
Consider the code snippet given below :
If the first file content is like this :
Then the copied file looks :
The two files are also attached with this post.
Please shre your suggestions to solve this issue
09-13-2011 08:55 AM
Right click on your Read and Write text file functions and uncheck the Convert EOL option.
You should also set the browse options for the 2nd file path to allow for new or existing files, and the file open to be for Open or Create. Without those changes, you can't pick a new file and if you could, you'd get error when it tried to open the file that didn't exist.