Java Program to write in a file line by line.

Output:

javaCode.txt

Welcome to Simple2Code.
Start the Tutorial