in reply to How to insert a new line?
What have you tried and how did it fail? Have you read the file open documentation and other file related stuff?