GoConqr has a new look! Let us know what you think.

Mind map

File Handling Operations

Ethan Laithwaite English

Map content

File Handling Operations

  1. Open

    • Prepare the file
    • r Read only
    • W Write only
    • a Append
    • r+ or w+ Both read and write
  2. Close

    • Close the file
    • Important because the open file uses memory
    • Gives the file a file handle then immediately closes it
  3. Write

    • Allows the program to write to the file
    • If the file doesn't exist, it will be created
      • If it does exist, all data will be erased ready for the program to write to it
  4. Write loop

    • Used instead of repeating the write command again and again
    • More efficient
  5. Read

    • Converts the entire contents into a single string or array variable
      • The program can then search it to find the data it wants.
  6. Read loop

    • An iteration loop (FOR or WHILE) can be used to read a file
    • The entire data can be read or only some

Information

Description
Mind Map on File Handling Operations, created by Ethan Laithwaite on 17/09/2017.
Views
2
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?