Hello JavaShak. Thanks for your input. In future - Please put the [code] [/ code] tags (minus the space after /) around your code. This makes it alot easier for people to read.
Hey Szimme101, take a look at this code below. This is exactly what you need to make it work:
FileInputStream in = new FileInputStream("yourfile.txt");
BufferedReader br = new BufferedReader(new InputStreamReader(in));
String[] myarray;
myarray = new String[9];
for (int i = 0; i < myarray.length; i++){
myarray[i] = br.readLine();
}
in.close();
You can print out all the array values by using this:
for (int a = 0; a < myarray.length; a++){
System.out.println(myarray[a]);
}