public static void printToFile ( String filename , String message ) { printToFile ( new File ( filename ) , message , false ) ; }
Prints to a file . If the file does not exist rewrites the file ; does not append .