Let's say I have some .csv file as follows:
1,2,5,5,
0,5,6,9,
3,2,5,7,
1,2,3,6,
How can I delete ',' sign at the end of each line?
p.s.
For example I know how to clean a space at the end of the line - file.readLine().trimmed();
, but how to do the same for other signs, I have no idea.