public String readFile(java.io.File file)
    {
        if(file.exists() && file.canRead())
        {
            JConsole c = new JConsole();
        String data = "";
            try
            {
                java.io.FileReader fs = new java.io.FileReader(file);
                while(fs.ready())
                {
                    data += (char)fs.read();
                }
                fs.close();
                return data;
            }
            catch(java.io.FileNotFoundException ex)
            {
                c.writeLine(ex);
                c.dispose();
                return "";
            }
            catch(java.io.IOException ex)
            {
                c.writeLine(ex);
                c.dispose();
                return data;
            }
        }
        return "";
    }