I need to retrieve the last character of a file. It may be a line break, or one of many special characters. Can I retrieve this character without parsing through the entire file? Or is there a way that I can read an entire file into a string without worry about line breaks?
I will essentially need to split the contents of the file, based on the last character of the file. So if it is a line break, I will split the string by '\n'.