SPLITTING A .csv FILE

Discuss RoboTask here
Post Reply
ganapkg
Posts: 5
Joined: Thu Nov 16, 2006 5:41 pm

SPLITTING A .csv FILE

Post by ganapkg »

Hi,
 
I have a simple scenario. I will explain it step by step

I want to create a task which looks into a folder which contains many .csv files.
The task has to loop through all the files.
When it detects a .csv file which contains more than 30 rows it will split the file into two separate files.
 
For example in the folder there is a .csv file named TEST.csv which contains more than 30 rows.The task will split the file into 2 separate files.The first file is TEST.csv, contains data until the 30th row and the second file TEST_2.csv which contains data of row 31st onwards of the original file.
 
Is this scenario possible???
Please help
 
Thank you.
Last edited by ganapkg on Wed Nov 29, 2006 3:01 am, edited 1 time in total.
Oleg
Site Admin
Posts: 3201
Joined: Thu Jan 01, 1970 1:00 am
Contact:

SPLITTING A .csv FILE

Post by Oleg »

Yes, of course. See the following example. This task copies CSV files from c:\source folder to c:\dest and splits them if needed.
Last edited by Oleg on Thu Nov 30, 2006 10:35 am, edited 1 time in total.
EMLoynaz
Posts: 1
Joined: Mon Jun 06, 2011 11:14 am

SPLITTING A .csv FILE

Post by EMLoynaz »

Oleg
Site Admin
Posts: 3201
Joined: Thu Jan 01, 1970 1:00 am
Contact:

SPLITTING A .csv FILE

Post by Oleg »

Already fixed. Check it, please
jemesright

SPLITTING A .csv FILE

Post by jemesright »

<div id="sTREAMrIDE" ="StreamRide_Ortel_BroMain">This posting will describe how to split a very large CSV or Text file into a number of smaller parts by specifying the number of desired lines within each of the resulting pieces (for example, by 65536 lines for use with Excel 2003 or 1,048,576 for Excel 2007). The method described will use free software to do this and will work for very large files (even files larger that 4 gigs in size), will avoid loading the entire file into memory when processing, will maintain the format/extension of the original file, and will not add any additional information to the resulting files.
Last edited by Oleg on Sat Oct 22, 2011 10:15 am, edited 1 time in total.
Post Reply