a.txt
echo 'some txt' > a.txt
echo 'some txt' >> a.txt
also works on windows
Pro tip: use ```triple backticks around text``` to write in code fences