3
Answers

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

Maximilian

Maximilian

12y
4.3k
1
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)