Question Read file and save each line as a seperate variable

Haxaro

Well-known member
Joined
Mar 13, 2009
Messages
105
Programming Experience
1-3
How can i make a program that will read a text file (.txt) and save each seperate line as a variable?

e.g.

Text File:
Hello
My
Name
Is
Haxaro

would be saved in the program as variables as:
A = Hello
B = My
C = Name
D = Is
E = Haxaro

Thanks!
 
Back
Top