Answer:
C)An error message is issued.
Explanation:
If we try to open a file for reading when that file does not exist, we will get an error message.
For example, in Java we will encounter a FileNotFoundException as in the code below:
try {
FileInputStream fis = new FileInputStream("myFile.txt");
DataInputStream dis = new DataInputStream(fis);
BufferedReader br = new BufferedReader(new InputStreamReader(dis));
String str = null;
while ((str = br.readLine()) != null) {
System.err.println(str);
}
} catch (FileNotFoundException e) {
e.printStackTrace();
}
If the file myFile.txt does not exist we can expect to see an exception stack trace corresponding to FileNotFoundException.