public void write ( File file ) throws IOException { Assert . state ( this . pid != null , "No PID available" ) ; createParentFolder ( file ) ; if ( file . exists ( ) ) { assertCanOverwrite ( file ) ; } try ( FileWriter writer = new FileWriter ( file ) ) { writer . append ( this . pid ) ; } }
Write the PID to the specified file .