public void writeToFile( String content ) {
        File file = new File( fileNameWithPath );
        file = new File( file.getParent() );

        if ( file.exists() == false ) {
            file.mkdirs();
        }
        try {

            PrintWriter pw = new PrintWriter( fileNameWithPath );
            pw.write( content );
            pw.close();

        } catch ( FileNotFoundException e ) {
            e.printStackTrace();
        }
    }