Maximilian

Maximilian

  • NA
  • 14
  • 16.9k

String (without \n\r) to Array or Arraylist

May 2 2012 6:20 PM
Hello.
I have an *.txt file on a Server.
i need a cod to Read the file and save the txt into a string array[23].
the txt in the txt-file is like this:

Hello
how
are
you?



and i want it in an string-arry (myarry)
so myarray[0] = Hello
myarray[1] = how
.
.
.

how to do? :D


P.S. i "download" the txt form the file with the WebClient funktion

Answers (3)