I need to get the last character of the file. It can be a line break or one of many special characters. Can I get this character indiscriminately throughout the file? Or is there a way I can read an entire file into a line without worrying about line breaks?
I essentially need to split the contents of the file based on the last character of the file. Therefore, if it is a line break, I split the line into "\ n".
source
share