touch /path/to/file/file.txt
/bin/echo "some text you want in a file" >> /path/to/file/file.txt
PS C:\>new-item -path C:\docs -name computerforum.txt -type "file" -value "some text"
I was playing with some old notes Tlarkin but just been to long. i was having a hard time. here's my notes 20 yrs ago.
create file with nothing in it.
copy:*.txt>>test
append files with something in the txt file.
copy *.* test/a
dir>text.txt
Oh well. something to play with.