English, asked by lshainu77gmailcom, 1 month ago

which command is used to open a file "c:abc.txt" in read mode only

Answers

Answered by swati072010
2

Answer:

fopen command

Explanation:

hope it helps

Answered by SahiliDessai1998
0

Answer:

To create a new file or open an existing one, use the fopen() function.

FILE*fp;

fp = fopen('abc','r');

Explanation:

The fopen() function has the following syntax:

fp = fopen(char filename, char mode); FILE *fp;

In this example, the pointer fp is of the FILE data type and points to an open or recently created file. The name of the file you want to open or create is the "filename" reference. The term "mode" refers to the reason the file is being opened.

Reading, writing, or adding data to a file are all possible modes. The standard input output library contains the fopen() function as well as all the other functions covered in this lecture.

To know more about fopen(), visit:

https://brainly.in/question/13933187

To learn more about pointers, visit:

https://brainly.in/question/12610653

#SPJ3

Similar questions