Is something like this:
cat \"Some text here.\" > myfile.txt
Possible? Such that the contents of myfile.txt would now be overwr
myfile.txt
Sounds like you're looking for a Here document
cat > outfile.txt <some text >to save >EOF