51.4k views
0 votes
A file must be ________ before data can be written to or read from it. closed opened buffered initialized none of these

User Fian
by
6.1k points

2 Answers

5 votes
Hello Circe2633

Answer: A file must be opened before data can be written to or read from it. closed opened buffered initialized none of these

Hope this helps
-Chris
User Himayan
by
6.5k points
2 votes

Answer: Opened

Explanation:

  • File is defined as object that holds information, commands ,data etc and allotted with specific name known as file name.
  • A file needs to be opened for performing functions like reading, writing changing elements, saving any changes made or closing etc.
  • Other options are incorrect because buffer is used for holding information before using it for short period of time.
  • Closing action can be performed only after opening a file. Initialization is defining any value that is required in program.
  • Thus , the correct option is opened.

User Filip Seman
by
6.4k points