What is the easiest way to read an entire text file with multiple lines one
character at a time.
Example, lets say the text file has 3 lines, containing the following letters below, how would I read in each indivdual character(including spaces) into
a variable and when it reaches the end of the file, last character (z), make
the process stop. I know theres an easy way to achieve this, any help
would be much appreciated.
+-------------------+
| TextFile1.txt
| a b c d e f g h i j
| k l m n o p q r s t
| u v w z y z
+-------------------+
-=Simcoder=-
character at a time.
Example, lets say the text file has 3 lines, containing the following letters below, how would I read in each indivdual character(including spaces) into
a variable and when it reaches the end of the file, last character (z), make
the process stop. I know theres an easy way to achieve this, any help
would be much appreciated.
+-------------------+
| TextFile1.txt
| a b c d e f g h i j
| k l m n o p q r s t
| u v w z y z
+-------------------+
-=Simcoder=-