public static void main(String[] args)
    {
        OutputFile f = new OutputFile("test.txt");
        f.OpenFile();
            f.WriteToFile("this is a test");
            f.WriteToFile("second line written");
        f.CloseFile();
        
        
    }