File handling

  • Created by: Tomiwaq
  • Created on: 06-05-19 19:38
View mindmap
  • File handling
    • Opening the external file
      • Opening a file needs an open command and assigning it to a variable
      • Once a file is opened it will start to read or write from the beginning
      • When finishing reading or writing you use a close command
    • Read or writing to a file once opened
      • Writing lines to a text using writeLine()
      • This command can overwrite what has already been written
      • Reading lines to a text using readLine()
      • endOfFile() signifies when a program should stop reading a file


No comments have yet been made

Similar Computing resources:

See all Computing resources »See all Programming resources »