making a new file and writing to it java code example Example: java create file File filename = new File(filepath)