Explain the difference between "Input" and "Output" file access modes in COBOL.

  • "Input" mode is used for reading data from a file, and "Output" mode is used for writing data to a file
  • "Input" mode is used for writing data to a file, and "Output" mode is used for reading data from a file
  • Both "Input" and "Output" modes are used for reading and writing data interchangeably
  • There is no difference between "Input" and "Output" modes
In COBOL, "Input" file access mode is used for reading data from a file, while "Output" mode is used for writing data to a file. These modes define the direction of data flow between the program and the file.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *