I've just remebered another problem I'm having with a bit of the code I have:
The error thrown up by the compiler says that a non-static ariable cannot be
used in a static 'way'.(something along those lines anyway) The variable
referenced to is
directoryFile (although it may have been directory, sorry, haven't the time
to check aain)
BufferedReader directoryFile = null;
try
{
new BufferedReader(new FileReader("config.txt"));
directory = directoryFile.readLine();
}
catch( IOException ioe ){ioe.printStackTrace();}
finally
{
if (directoryFile != null)
try
{
directoryFile.close();
} catch (IOException ioe2)
{
// just ignore it
}
}