Hi, I would like to get help because i’m stuck from yesterday on this.
I’ve tried multiple things but can’t go through.
I explain my case :
I have an Excel file (it can be CSV too), containing 105 lines, I need to split this file in few excel files with 20 lines inside for each (and so 5 lines for the last one), so it will be 6 files in total.
First remove all the lines after the index 20 of the first file, and split theses lines into others files of 20 lines each.
Read the whole Excel file and store it in a Data row.
Initiate the counter with 6
iterate the data row until the counter is reached > store the value in the collections while iteration. > after getting values in to collection , Increase the counter by 6 > come out of the loop > write the collections in to a file.
Iterate the row again from the item 7 > do the same process until it reaches the end of file.
Hi, thanks for your quick reply. This could be a solution but it’s a business process that could have files that contains more or less then 105 lines (this was just an example)