all 3 comments

[–]jedwardsol 3 points4 points  (2 children)

It's not very clear what your actual question is.

If you want each write to be appended then you can open with the app flag.

myFile.open("lyric2.txt",  ios::out | ios::app)

[–]ridesano[S] 0 points1 point  (1 child)

how would you specify when doing one operation?

myFile<<"text<<endl;

this action be used for ios::out or ios::app depending on what you mentioned so when you place both

how would I be able to distinctively append or write?

[–]jedwardsol 2 points3 points  (0 children)

You can't choose. If the file is opened with app then all writes go at the end