File f = new File(fileName);
try
{
if( f.length() == 0 )
{
f.createNewFile();
}
else
{
doSomething()
}
}
catch (IOException e)
{
System.out.println("IO Error: " + e.getMessage());
}
finally
{
Brak komentarzy:
Prześlij komentarz