open (FH, "..."); while () { s/\,$//; print FH $_; }