18.2k views
0 votes
The inFS.open(str) function has a string parameter str that specifies the _____ of the file to open.

User Zaneta
by
8.9k points

1 Answer

4 votes

Answer:

str represents the name of the file to open

Step-by-step explanation:

Required:

What does str represents in the above syntax

Before the inFS function can be used to access or read or write into a file, the file name has to be specified.

This could be done in any of the following ways:

1. inFS.open("abc.txt")

2. str = "abc.txt"; inFS.open(str);

In (1), the file name is specified directly into the function

While in (2), the filename is passed into a string variable which is then further passed to the inFS function.

In the case of this question, method 2 is used and the str represents the name of the file

User Galusben
by
8.4k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.