slide1 l.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
apples peaches pears PowerPoint Presentation
Download Presentation
apples peaches pears

Loading in 2 Seconds...

play fullscreen
1 / 19

apples peaches pears - PowerPoint PPT Presentation


  • 270 Views
  • Uploaded on

bananas apples peaches pears OLDVERSION.TXT apples peaches pears plums raspberries strawberries tangerines NEWVERSION.TXT apples bananas peaches pears plums strawberries tangerines How to modify a file. You can't! Method 1: Copy and modify. Method 2:

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'apples peaches pears' - sherlock_clovis


Download Now An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
slide1

bananas

apples

peaches

pears

slide2

OLDVERSION.TXT

apples

peaches

pears

plums

raspberries

strawberries

tangerines

NEWVERSION.TXT

apples

bananas

peaches

pears

plums

strawberries

tangerines

How to modify a file.

You can't!

Method 1:

Copy and modify.

slide3

Method 2:

Copy input file to an array.

theFile.TXT

char data[100][80]

apples

peaches

pears

plums

raspberries

strawberries

tangerines

[0] apples

[1] peaches

[2] pears

[3] plums

[4] raspberries

[5] strawberries

[6] tangerines

slide4

Close the input file.

char data[100][80]

data[0]

data[1]

data[2]

data[3]

data[4]

data[5]

data[6]

data[7]

data[8]

[0] apples

[1] peaches

[2] pears

[3] plums

[4] rasberries

[5] strawberries

[6] tangerines

apples

peaches

pears

plums

raspberries

strawberries

tangerines

slide5

Modify the array.

char data[100][80]

data[0]

data[1]

data[2]

data[3]

data[4]

data[5]

data[6]

data[7]

data[8]

apples

peaches

pears

plums

raspberries

strawberries

tangerines

slide6

Modify the array.

Add bananas

char data[100][80]

data[0]

data[1]

data[2]

data[3]

data[4]

data[5]

data[6]

data[7]

data[8]

apples

peaches

pears

plums

raspberries

strawberries

tangerines

slide7

Modify the array.

Add bananas

char data[100][80]

data[0]

data[1]

data[2]

data[3]

data[4]

data[5]

data[6]

data[7]

data[8]

apples

peaches

pears

plums

raspberries

strawberries

tangerines

tangerines

slide8

Modify the array.

Add bananas

char data[100][80]

data[0]

data[1]

data[2]

data[3]

data[4]

data[5]

data[6]

data[7]

data[8]

apples

peaches

pears

plums

raspberries

strawberries

strawberries

tangerines

slide9

Modify the array.

Add bananas

char data[100][80]

data[0]

data[1]

data[2]

data[3]

data[4]

data[5]

data[6]

data[7]

data[8]

apples

peaches

pears

plums

rasberries

raspberries

strawberries

tangerines

slide10

Modify the array.

Add bananas

char data[100][80]

data[0]

data[1]

data[2]

data[3]

data[4]

data[5]

data[6]

data[7]

data[8]

apples

peaches

pears

plums

plums

raspberries

strawberries

tangerines

slide11

Modify the array.

Add bananas

char data[100][80]

data[0]

data[1]

data[2]

data[3]

data[4]

data[5]

data[6]

data[7]

data[8]

apples

peaches

pears

pears

plums

raspberries

strawberries

tangerines

slide12

Modify the array.

Add bananas

char data[100][80]

data[0]

data[1]

data[2]

data[3]

data[4]

data[5]

data[6]

data[7]

data[8]

apples

peaches

peaches

pears

plums

raspberries

strawberries

tangerines

slide13

Modify the array.

Add bananas

char data[100][80]

data[0]

data[1]

data[2]

data[3]

data[4]

data[5]

data[6]

data[7]

data[8]

apples

bananas

peaches

pears

plums

raspberries

strawberries

tangerines

slide14

Modify the array.

Remove raspberries

char data[100][80]

data[0]

data[1]

data[2]

data[3]

data[4]

data[5]

data[6]

data[7]

data[8]

apples

bananas

peaches

pears

plums

raspberries

strawberries

tangerines

slide15

Modify the array.

Remove raspberries

char data[100][80]

data[0]

data[1]

data[2]

data[3]

data[4]

data[5]

data[6]

data[7]

data[8]

apples

bananas

peaches

pears

plums

strawberries

strawberries

tangerines

slide16

Modify the array.

Remove raspberries

char data[100][80]

data[0]

data[1]

data[2]

data[3]

data[4]

data[5]

data[6]

data[7]

data[8]

apples

bananas

peaches

pears

plums

strawberries

tangerines

tangerines

slide17

Modify the array.

char data[100][80]

data[0]

data[1]

data[2]

data[3]

data[4]

data[5]

data[6]

data[7]

data[8]

apples

bananas

peaches

pears

plums

strawberries

tangerines

tangerines

slide18

Open the file for output.

char data[100][80]

theFile.TXT

data[0]

data[1]

data[2]

data[3]

data[4]

data[5]

data[6]

data[7]

data[8]

apples

bananas

peaches

pears

plums

strawberries

tangerines

tangerines

slide19

Copy array to file.

char data[100][80]

theFile.TXT

data[0]

data[1]

data[2]

data[3]

data[4]

data[5]

data[6]

data[7]

data[8]

apples

bananas

peaches

pears

plums

strawberries

tangerines

tangerines

apples

bananas

peaches

pears

plums

strawberries

tangerines