Manage multiline contents of a file