Thanks, it works now. :D
Type: Posts; User: The_Mexican
Thanks, it works now. :D
That makes it work. However, when I print the text, it strings all the lines in the text together, with no enters to separate lines.
This is the text file:
One
Two
Three
Four
Five
Hmm, technically I did read the file once, to get the value of num (which is just the number of lines in the file). However, I used two different readers to do this (see the code in my first post).
For some reason, when I do this, it prints out: "nullnull". I have no idea why.
StringBuffer sb = new StringBuffer();
String[] notesarr = new String[num];
...
Hi, I would like to convert a String array (String[]) to a String which I can print. I don't know how to do this as there's no simple method like String s = stringArray.toString() or something as far...