To Create New Text File

Syntax:

copy con

Ex.

C:\> copy con MyInformation

There is another program, called edit in DOS.

C:\>edit MyInformation

To read a text file we can use type command.

c:\> type MyInformation

ð It will display contains of the file.

We can add two text file by the command. Example: we will add f1 and f2 files and create another file f3.

C:\>type f1


C:\>type f2


C:\>copy f1+f2 f3


C:\>type f3