Is there a way to print an entire file, character by character, without know it’s length or worrying about how many lines it has?
Right now I read a file and count how many lines it has, read each line, send it to a manipulation function print the manipulated string out. I had to create a countLines() function and a readLine() function to do so. Just wondering if there is anything more efficient.
Something like this should do: