Hi,
I am learning java.I have a question on this. I have a textfile with 1 to 100 numbers.
I need to read this file upto 1 to 50 numbers and store it in in an 1D array. The code is
File f = new File(MyFile.txt);
FileReader fr = new FileReader(f);
BufferedReader br = new BufferedReader(fr);
while()
{
//here I need to read the file . put it in an array
}
can you help me this.
thanks,
I am learning java.I have a question on this. I have a textfile with 1 to 100 numbers.
I need to read this file upto 1 to 50 numbers and store it in in an 1D array. The code is
File f = new File(MyFile.txt);
FileReader fr = new FileReader(f);
BufferedReader br = new BufferedReader(fr);
while()
{
//here I need to read the file . put it in an array
}
can you help me this.
thanks,