Computer Science, asked by ganeshmasarapu, 8 months ago

1.Answer the all questions.
1. what are the basic file operations in c.

Answers

Answered by samriddhbhatia7
0

Answer:

Almost all information stored in a computer must be in a file. There are many different types of files: data files, text files , program files, directory files, and so on. Different types of files store different types of information. For example, program files store programs, whereas text files store text.

Answered by dadslover919
0

So far the operations using C program are done on a prompt / terminal which is not stored anywhere. But in the software industry, most of the programs are written to store the information fetched from the program. One such way is to store the fetched information in a file. Different operations that can be performed on a file are:

Creation of a new file (fopen with attributes as “a” or “a+” or “w” or “w++”)

Opening an existing file (fopen)

Reading from file (fscanf or fgetc)

Writing to a file (fprintf or fputs)

Moving to a specific location in a file (fseek, rewind)

Closing a file (fclose)

i hope this answer helps..

mark as a brainliest..

Similar questions