Paul’s jabber


Echo a message to a text file from command prompt
August 23, 2008, 6:56 pm
Filed under: Computers, Software, Uncategorized

I just found a nice quick way of creating and writing to a text file straight from command prompt. This will save you the agony of having to open Windows Explorer, create a txt file, open it with notepad, write your story and save it … whew (wipe forehead). So this is how we’ll do it:

The first command creates a txt file “MyCoolTextFile.txt” containing the text “Hello world!!”. The second command however, I’m sure you’ll find even more exciting as it displays the contents of the file we’ve just created. And what do you know, the contents is “Hello world!!!” just as we typed it in the first command. There are of course other ways of doing it, but I won’t be telling you how … uhm … because quite frankly I don’t have the energy nor the time to type up and test all the various methods.


No Comments Yet so far
Leave a comment



Leave a comment
Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>