I have a non-trivial question for guys.
I seek to print some data to an existing .csv file. I am aware of the fact that FileWriter("c://Directory",true) prints in extension to a current .csv file. However, instead of appending to the last line in the .csv, do you know of a way to print in the existing .csv file, from the first line in the .csv but adding new columns to the existing lines in the existing csv file?
Example: myfile.csv contains:
c1; c2
a; b
d; e
now I want to add the following to the above file:
; c3
; c
; f
such that myfile.csv now containts:
c1; c2; c3
a; b; c
d; e; f
Is this even possible? Or perhaps the easiest way is to just create an entire new file?Thanks in advance for your time!