java - How to make separate csv files depending upon the name of the columns from a single csv file using any programming language? -


i have 1000 csv files... looks this...

id,exam1,exam1,exam1,exam2,exam2,exam2,exam3,exam3,exam3.... lv-1,sub1,sub2,sub3,sub1,sub2,sub3,sub1,sub2,sub3....  in next line here have data.... id number , respective marks... 

the problem want separate files list individual exams along id number , specific subjects.

how want example...

id,exam1,exam1 lv-1,sub3,sub2  <----- above exam1 ----->  id,exam2,exam2 lv-1,sub3,sub2  <----- above exam2 -----> 

here in file 2 want marks of exam2 same stud_id number present in first column of file 1 specific subject marks...

like want exam3 , exam4 , on....

then later want all files placed in respective directories of exam1 exam2 exam3 , on...

here dont want modify original file... want extract , sort data accordingly.

if doubts let me know. know problem big believe coding can solve in seconds ^_^

any appreciated alot alot...

thanks in advance.

i wonder if want tell how or want you? language purpose. example if want use java, need loop through of .csv files in directory, parse them seperate files save in seperate directories.

things going need:

how iterate on files of directory, in java? - here's how iterate through files in directory

https://docs.oracle.com/javase/7/docs/api/java/lang/string.html - methods can use string class

https://docs.oracle.com/javase/7/docs/api/java/lang/stringbuilder.html - maybe stringbuilder useful

how create directory in java? - how create directory


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -