![]() Once you have entered the above command, the hope.txt file is created.Īfter you have typed all the lines, you want to be in the file, press and hold Ctrl+ Z. If you cannot use any of the methods above, you can also use copy con to create a file. In MS-DOS, you can also use the type command to display the contents of a text file.Pressing Enter advances the output one line at a time and pressing spacebar advances one page at a time. In the previous example, the type command displays the contents one page at a time. For large files, you can also pipe the command to more as shown in the example below. If the file is a large file, it keeps scrolling unless you press the pause key. ![]() In the example above, the command would display all of the contents of the hope.txt to the file. If you only want to view the file's contents, you can also use the type command: type hope.txt
0 Comments
Leave a Reply. |