GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Mindmap

File Handling Operations

Ethan Laithwaite Englisch

Inhalt der Mindmap

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

Informationen

Beschreibung
Mindmap am File Handling Operations, erstellt von Ethan Laithwaite am 17/09/2017.
Erstellt von
Ethan Laithwaite
Aufrufe
2
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck