the textfile just stores text, so if you want a newline you need to use your newline sequence, which is probably the "\n" character, though it could also be "\r\n" or "\r".
As for inserting double quotes, since you are using double quotes as string delimiters (i.e. denoting the start and end of a string), you need to escape them to become \"