StringBuffer sb = new StringBuffer();
final StringBuffer sb = new StringBuffer();
    private long getFileSize( final String filename )    {        final File file = new File( m_baseDirectory, filename );        StringBuffer sb = new StringBuffer();        try        {            FileReader fr = new FileReader( file );            int c = 0;            while( c != -1 )            {                c = fr.read();                sb.append( Character.forDigit( c, 10 ) );            }        }        catch( Exception e )        {            e.printStackTrace();        }        return sb.length();    }