Create file using echo



echo "Hello World" > out.txt
echo "Hello Again" >> out.txt