Exercise On Creation of Text Files Using Notepad, Wordpad
Exercise On Creation of Text Files Using Notepad, Wordpad
Exercise On Creation of Text Files Using Notepad, Wordpad
Notepad
Notepad is a generic text editor included with all versions of Microsoft Windows that allows
us to create, open, and read plaintext files. If the file contains special formatting or is not a
plaintext file, it will not be able to be read in Microsoft Notepad. The image to the right is a
small example of what the Microsoft Notepad may look like while running.
Note: If we need built-in features such as a spell checker, grammar checker, font sizes,
multimedia (e.g. pictures), etc. we should be using a word processor and not an editor.
How to open Windows Notepad
Users who are using Microsoft Windows can run Microsoft Notepad (notepad.exe) by
following the steps below.
Windows 7 and earlier
1. Click Start
2. In the Run box, type notepad and press Enter.
or
1. Click the Start.
2. In the Start Menu, click Programs or All Programs, then click the Accessories
folder.
3. Click the Notepad icon.
How to create a text file using Notepad
Open Notepad and type the text we want in the file. Once done, save the file by clicking File
and then Save. When saving the file, make sure the file is saved with a .txt extension.
or
On the Windows Desktop or in any folder, right-click an empty spot. In the pop-up menu,
select New and then Text Document. After this has been done, a file should appear named
"New Text Document". Double-click this file to open the text document, or rename the file to
the name of the choice and then open the file.
WordPad
1
Microsoft WordPad is a free rich text editor included with Microsoft Windows. Although
capable of doing more than Notepad, WordPad is not as advanced as Microsoft Word.
However, does give us additional features such as the capability of inserting pictures and text
formatting. The picture below shows an example of Microsoft WordPad.
Microsoft WordPad is capable of editing and saving plain-text file (.txt), Rich Text Format
(.rtf), and Word for Windows 6.0 (.doc or .docx), and Open Document Text (.odt) format files.
Note: Not all versions of WordPad support all above formats. Windows 95, Windows 98,
Windows ME, and Windows XP does not support .doc. Windows 7 introduced the support
of .odt files, so early versions of Windows do not support this format.
How to open Microsoft WordPad
Users who are using a version of Microsoft Windows that supports WordPad can run
Microsoft WordPad (wordpad.exe) by following the steps below.
1. Click Start
2. Click Run
3. Type "wordpad" or "write" press Enter.
or
1. Click Start
2. Click Programs and then Accessories
3. Click the "Wordpad" icon
2
Exercise on creation of .jpeg, .bmp Files using MS-Paint
MS Paint
MS Paint is an image editing program that comes with Windows operating systems. To open
the MS Paint program click Start > All Programs > Accessories > Paint.
OR
2. Right-click on an image and select Copy or Copy Image.
1. Once the image is in MS Paint, select the Crop option from the selection menu.
We can also Right click on the image and click Crop from the menu or use keyboard
shortcut (<ctrl>+<shift>+x).
2. Click and drag the cursor around the area we wish to crop.
3. Click on the Crop button again.
4. Select File > Save to save the new image.
Note: For Save as type, choose .JPEG, .PNG, or .GIF.
3
DOS Operating System
DOS (Disk operating system) was developed by Micro-Soft for personal computer to
operate the computer from Disk.
To operate the computer DOS has two types of commands those are Internal and
External commands.
Internal Command:
The DOS internal commands are so-called because their instructions are a part of
COMMAND.COM, the DOS command processor.
Recall that COMMAND.COM is placed into memory (ram) each time the DOS OS is booted.
Therefore, the internal commands are always in memory and can always be executed from
any command line prompt.
4
Syntax: D :\> Date
2. Type: this command is used display the contents or text of any file to
the display device.
Syntax: type <<File_Name>>
Ex: D :\> type Proverbs.txt
A journey of thousand miles begins with a single step.
Always put your best foot forward.
An idle brain is the devil’s workshop
Be slow in choosing, bit slower in changing.
Beauty is in the eye of the beholder.
3. Copy command: this command is used to copy the content of one file into
another file
5
1. MD / MKDIR(Make Directory): command is used to create a new
directory
Syntax: MD <<Directory-Name>>
Ex: D :\> MD SBIT
This command creates the SBIT folder now we can keep various files and sub-
folders in SBIT folder
D:\SBIT>
Prompt will change with the directory name.
If we keep two dots after CD command then we will exit from the
directory.
Ex: D:\SBIT>CD ..
D:\>
3. RMDIR(remove Directory) this command is used to remove
the directory.
Syntax: RMDIR <<Directory-Name>>
Ex: D :\> RMDIR SBIT
This is in contrast to the disk-bound external commands, which reside in secondary memory
up until the moment they are needed, at which time the OS must find them and load them
into primary memory.
XCOPY
2. MOVE command is used to move the file from one location to another
location
6
3. FIND command allows you to search for text within a file.
Syntax: FIND "string" <<file name>>
Ex: FIND “journey” Eng_Provers.txt
________________English_Proverbs.txt
A journey of thousand miles begins with a single step.
4. SORT is a simple and very useful command which will rearrange the lines
in a text file so that they are sorted, numerically and alphabetically.
Syntax: sort <<File-Name>>
Ex: D:\> SORT Fruits.txt
Apple
Banana
Grapes
Orange
Pine-Apple (Alphabetical Order)
5. XCOPY This command is used to copy the file from one location to another
location. This command is much faster than copy command.
Syntax: XCOOY <<SOURCE FILE>> <<TARGET FILE>>
Ex: XCOPY D:\English-Proverbs.txt E:\Enlish\Eng-Provbs.txt