Splitting the file Logically
Posted: Mon Feb 26, 2007 12:25 am
Hi all,
I have a requirement which goes like this - A .txt file should be splitted (logically) based on the memory / size of the data and a hard coded value should be appended for each and every split and written into a output file.
To explain it more clearly- The input file which is more than 256KB for an example say 2560KB, should be read and when it crosses 256KB, a new line should be appended and then the next 256KB should be written to the same file followed by the same appended line, when it crosses 256KB, and so on..
Please let me know how to do this on DS.
Thanks!
I have a requirement which goes like this - A .txt file should be splitted (logically) based on the memory / size of the data and a hard coded value should be appended for each and every split and written into a output file.
To explain it more clearly- The input file which is more than 256KB for an example say 2560KB, should be read and when it crosses 256KB, a new line should be appended and then the next 256KB should be written to the same file followed by the same appended line, when it crosses 256KB, and so on..
Please let me know how to do this on DS.
Thanks!