34
Practical PC, 7 th Edition Chapter 4: File Basics

Practical PC, 7 th Edition Chapter 4: File Basics

Embed Size (px)

Citation preview

Page 1: Practical PC, 7 th Edition Chapter 4: File Basics

Practical PC, 7th EditionChapter 4: File Basics

Page 2: Practical PC, 7 th Edition Chapter 4: File Basics

File Basics

• FAQs– What is a computer file?– What are file properties and tags?– What do I need to know about file names and

extensions?– How do I open data files?– How does Windows know which application to use

when I open a file?– How do I create and save files?

• Technology: Hard disk drives2Practical PC, 7th Edition

Page 3: Practical PC, 7 th Edition Chapter 4: File Basics

What is a computer file?

• A computer file is a collection of data that has a name and is stored on a hard disk or portable media

• Two types of files: executable and data – Executable file• Computer program containing instructions written in a

programming language– Data file• Contains words, numbers, and pictures that can be

manipulated, i.e., a word processing document

Practical PC, 7th Edition 3

Page 4: Practical PC, 7 th Edition Chapter 4: File Basics

What is a computer file?

Practical PC, 7th Edition 4

Figure 4-1

Page 5: Practical PC, 7 th Edition Chapter 4: File Basics

What are file properties and tags?

• Every file has file properties that describe its name, type, location, and size• Additional properties are assigned to certain types

of files– JPEG files have a dimensions property– Music files have a length property

• Properties and tags can generally be viewed from the operating system’s file manager– Utility for Windows 8 is called File Explorer

Practical PC, 7th Edition 5

Page 6: Practical PC, 7 th Edition Chapter 4: File Basics

What are file properties and tags?

Practical PC, 7th Edition 6

Page 7: Practical PC, 7 th Edition Chapter 4: File Basics

What is a file?

Practical PC 6th Edition

Page 8: Practical PC, 7 th Edition Chapter 4: File Basics

What do I need to know about file names and extensions?

• Every computer file has a file name– Effective file names describe their contents– File names in Windows are not case sensitive– Some words and symbols cannot be used in

file names

Practical PC, 7th Edition 8

Figure 4-3

Page 9: Practical PC, 7 th Edition Chapter 4: File Basics

What do I need to know about file names and extensions?

• A file extension is a set of characters added to a file name to indicate the file’s contents and origin–Windows does not display file extensions by

default– Software automatically adds the correct file

extension when a file is saved

Practical PC, 7th Edition 9

Page 10: Practical PC, 7 th Edition Chapter 4: File Basics

What do I need to know about file names and extensions?

Practical PC, 7th Edition 10

Figure 4-4

Page 11: Practical PC, 7 th Edition Chapter 4: File Basics

What do I need to know about file names and extensions?

– Operating systems usually hide file extensions because novice users find them confusing• Files extensions can be easily revealed

Practical PC, 7th Edition 11

Page 12: Practical PC, 7 th Edition Chapter 4: File Basics

What do I need to know about file names?

Practical PC 6th Edition

Page 13: Practical PC, 7 th Edition Chapter 4: File Basics

What do I need to know about file names and extensions?

Practical PC, 7th Edition 13

Page 14: Practical PC, 7 th Edition Chapter 4: File Basics

What do I need to know about file names and extensions?

Practical PC, 7th Edition 14

– Windows displays a file type (or file format) based on the extension

Figure 4-6

Page 15: Practical PC, 7 th Edition Chapter 4: File Basics

How do I open data files?

• Open files from:– Start screen

Practical PC, 7th Edition 15

Figure 4-7

Page 16: Practical PC, 7 th Edition Chapter 4: File Basics

How do I open data files?

– Desktop• Double-click file’s icon

– Application software• Use the Open command

– File Explorer

Practical PC, 7th Edition 16

Page 17: Practical PC, 7 th Edition Chapter 4: File Basics

How does Windows know which application to use when I click a file?

• Windows keeps a list of file types and their corresponding default programs– A default application is the one Windows uses

when a particular type of file is opened• XLSX file type identifies an Excel file

– The link between a file type and its default application is sometimes called a file association

Practical PC, 7th Edition 17

Page 18: Practical PC, 7 th Edition Chapter 4: File Basics

How do I open files?

• To view or modify a file, you have to first open it– Open command in application software– Double-click icon on Windows desktop– Type all or part of a file name in the Start menu’s

Search box– Click a file located on the application’s jump list on

the Start menu

Practical PC 6th Edition

Page 19: Practical PC, 7 th Edition Chapter 4: File Basics

How do I open files?

Practical PC 6th Edition

Page 20: Practical PC, 7 th Edition Chapter 4: File Basics

How does Windows know which application to use when I click a file?

– You can open files using an application other than the default by:• Right-clicking the file name and selecting the Open with

option• Changing the default application that Windows uses

Practical PC, 7th Edition 20

Page 21: Practical PC, 7 th Edition Chapter 4: File Basics

How does Windows know which application to use when I click a file?

Practical PC, 7th Edition 21

Figure 4-9

Page 22: Practical PC, 7 th Edition Chapter 4: File Basics

How do I create and save files?

• The most common way to create files is by using application software– Click New to open the

work area– Enter desired data– When ready to save, use

Save or Save As to givethe file a name andspecify a storagelocation

Practical PC, 7th Edition 22

Figure 4-10

Page 23: Practical PC, 7 th Edition Chapter 4: File Basics

How do I create and save files?

– Save As also allows user to save a file using a different name or in a different place while retaining the original file

– Once a file has been named, using Save will replace the currently saved version of the document with the new version

Practical PC, 7th Edition 23

Page 24: Practical PC, 7 th Edition Chapter 4: File Basics

How do I create and save files?

Practical PC, 7th Edition 24

Figure 4-11

Page 25: Practical PC, 7 th Edition Chapter 4: File Basics

How do I create and save files?

Practical PC 6th Edition

Page 26: Practical PC, 7 th Edition Chapter 4: File Basics

Technology: Hard Disk Drives

• A hard disk is a circular, rigid storage medium typically made of aluminum or glass and coated with metallic particles

– The hard disks and their read/write heads are stored inside the drive and are called platters

– Most PCs have two to four platters

Practical PC, 7th Edition 26

Page 27: Practical PC, 7 th Edition Chapter 4: File Basics

Technology: Hard Disk Drives

Practical PC, 7th Edition 27

Page 28: Practical PC, 7 th Edition Chapter 4: File Basics

Technology: Hard Disk Drives

• Hard disk drives use magnetic storage technology– Utilizes a read/write head that magnetizes tiny

metallic particles on the disk’s surface– Is fast and inexpensive• Typical hard drives hold 500 GB of data—500 billion

letters, numbers, symbols• They can fill up quickly

– Access time • How long it takes the read/write head to locate and

retrieve data from the disk—average is about 9 milliseconds

Practical PC, 7th Edition 28

Page 29: Practical PC, 7 th Edition Chapter 4: File Basics

Technology: Hard Disk Drives

• Drive icon’s Property window– Shows how much

used/free space is on the hard drive

Practical PC, 7th Edition 29

Page 30: Practical PC, 7 th Edition Chapter 4: File Basics

Technology: Hard Disk Drives

• External hard disk drives– Connect to a USB port– Best option for portable

and all-in-one computers– Can be used to transport

large amounts of datafrom computer tocomputer

– Cost a little bit more than a hard drive

Practical PC, 7th Edition 30

Page 31: Practical PC, 7 th Edition Chapter 4: File Basics

Technology: Hard Disk Drives

• Hard disk drive efficiency– Decreases over time– Each disk is divided into tracks– Each track is divided into sectors• Each sector is a fixed size• PC must use more than one sector for large files and

sometimes those sectors are non-adjacent sectors• This can result in data being scattered all over the disk• A file stored in non-adjacent sectors is referred to as a

fragmented file

Practical PC, 7th Edition 31

Page 32: Practical PC, 7 th Edition Chapter 4: File Basics

Technology: Hard Disk Drives

• Hard disk drive efficiency continued:– A disk containing many fragmented sectors is

known as a fragmented disk and is not operating at peak efficiency

– Run a defragmentation utility to reorganize the disk and put data for each file in adjacent sectors• This enables the read/write head to locate and retrieve

the data much more quickly

Practical PC, 7th Edition 32

Page 33: Practical PC, 7 th Edition Chapter 4: File Basics

Technology: Hard Disk Drives

Practical PC, 7th Edition 33

Page 34: Practical PC, 7 th Edition Chapter 4: File Basics

Hardware: Hard disk drives

Practical PC 6th Edition