while theres lines in the file read one replace '\r' with nothing (making sure every line ends with a '\n') split the line into three containers with ',' as the seperation char. print out whats filled into the containers