Is something like this:
cat \"Some text here.\" > myfile.txt
Possible? Such that the contents of myfile.txt would now be overwr
myfile.txt
cat can also be used following a | to write to a file, i.e. pipe feeds cat a stream of data
cat
|