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?

Perl is the programming world's equivalent of English