my code for the problem so far is as follows:

import java.io.*;

public class TestProg {
public static void main(String[] args)throws IOException
{
String SplitBy = " ";
BufferedReader br = null;
String sCurrentLine = "";
String[] st = new String[sCurrentLine.length()];
try
{
br = new BufferedReader(new FileReader("C:\\Users\\iftikhar\\workspace\\TestProgram\\input.txt"));
while ((sCurrentLine = br.readLine()) != null)
{
st[] = sCurrentLine.split(SplitBy);
System.out.println(st);

}
}
catch (IOException e)
{
e.printStackTrace();
}
finally
{
try
{
if (br != null)br.close();
}
catch (IOException ex)
{
ex.printStackTrace();
}
}