in reply to Re: split large CSV file >9.1MB into files of equal size that can be opened in excel
in thread split large CSV file >9.1MB into files of equal size that can be opened in excel
Have you taken a look at the split csv files?
You're splitting in bytes, which means that unless your csv files are *very* reliably structured, you will likely break the file up into chunks that break full lines.
Say you have a file like this:
1,2,3,4,5
and a read statement like this:
read $fh, $chunk, 5;
You'll end up with split file one with:
1,2,3
and the second split file with:
,4,5
Which might not be what you wanted.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: split large CSV file >9.1MB into files of equal size that can be opened in excel
by pryrt (Abbot) on Sep 28, 2016 at 23:17 UTC |