Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java write a file line by line

FileWriter fw = new FileWriter("C:/a/folder/file.txt");
for(int i=0; i<10; i++) {
  fw.write("test
");
}

fw.close();
 
PREVIOUS NEXT
Tagged: #java #write #file #line #line
ADD COMMENT
Topic
Name
5+6 =