Help with loadStrings();....can I loadString???
in
Programming Questions
•
1 year ago
Hey all,
I have a new problem for you. I need to loadString instead of loadStrings. Basically, I need to loadStrings but load the entire file into one String instead of each line into an Array of Strings[]; this is my test .txt file to load.
And this is what I want to return when I run this code:Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec enim est, fermentum nec tristique nec, gravida id purus. Pellentesque commodo semper purus, quis tincidunt odio sodales quis. Ut vel condimentum erat. Pellentesque vestibulum risus a augue dignissim sit amet facilisis.
- String testText;
- testText = // This is where I need to load the text file...all into one string.
- print(testText);
ThanksLorem ipsum dolor sit amet, consectetur adipiscing elit. Donec enim est, fermentum nec tristique nec, gravida id purus. Pellentesque commodo semper purus, quis tincidunt odio sodales quis. Ut vel condimentum erat. Pellentesque vestibulum risus a augue dignissim sit amet facilisis.
- Andrew G.
1