I want to read line by line but I do not want to deal with newline, I want it to be removed so I only end up with the content of the line.
So right now my function i
Use trim() or rtrim()(if you want to preserve whitespaces in the beginning of the string) to strip whitespaces.