Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

writing to a text file java

PrintWriter writer = new PrintWriter("the-file-name.txt", "UTF-8");
writer.println("The first line");
writer.println("The second line");
writer.close();
 
PREVIOUS NEXT
Tagged: #writing #text #file #java
ADD COMMENT
Topic
Name
8+1 =