Solution for "create text file and write msg on it java"

File myObj = new File("path"); myObj.createNewFile(); FileWriter myWriter = new FileWriter("path"); myWriter.write("text"); myWriter.close();

java create txt file

Similar codes for "create text file and write msg on it java"


Latest 'Java' questions

Added before "create text file and write msg on it java"