0 like 0 dislike
1.0k views
in Biology by (1.0m points)
Define fputs() and fgets() functions and give example.

1 Answer

0 like 0 dislike
by (1.0m points)

fopen(), fclose(), gets() and fputs() functions are file handling functions in C programming language. Please find below the description and syntax for each above file handling functions

MODE OF OPERATIONS PERFORMED ON A FILE IN C LANGUAGE:

There are many modes in opening a file. Based on the mode of file, it can be opened for reading or writing or appending the texts. They are listed below.

r – Opens a file in read mode and sets pointer to the first character in the file. It returns null if file does not exist.

w – Opens a file in write mode. It returns null if file could not be opened. If file exists, data are overwritten.

a – Opens a file in append mode.  It returns null if file couldn’t be opened.

r+ – Opens a file for read and write mode and sets pointer to the first character in the file.

w+ – opens a file for read and write mode and sets pointer to the first character in the file.

a+ – Opens a file for read and write mode and sets pointer to the first character in the file. But, it can’t modify existing contents.

OTHER INBUILT FILE HANDLING FUNCTIONS IN C PROGRAMMING LANGUAGE:

C programming language offers many other inbuilt functions for handling files. They are given below. Please click on each function name below to know more details, example programs, output for the respective file handling function.

by
Таможенный агент «ВЭД ЛАЙН» предоставляет услуги в сфере ведущего импортера в торговой работе с КНР. Наш коллектив имеет огромный опыт в этой действенности, ведь мы занимаемся на данном рынке много лет. «ВЭД ЛАЙН» https://ved-line.ru имеет кадровых специалистов по работе с поставками импортных товаров, в том числе высококвалифицированных специалистов по работе с потребителями.
by
by
by
Таможенный декларант «ВЭД ЛАЙН» предоставляет услуги в области ведущего поставщика в внешнеторговой деятельности с Поднебесной. Наш коллектив имеет ценный опыт в этой действенности, так как мы занимаемся на этом рынке много лет. «ВЭД ЛАЙН»  имеет кадровых сотрудников по работе с импортом, а также высококвалифицированных менеджеров по сотрудничеству с потребителями.
http://www.scampatrol.org/tools/whois.php?domain=ved-line.ru
by
levaquin 500mg ca <a href="http://gnlevaqu.com/">order levofloxacin 250mg online</a>

Related questions

0 like 0 dislike
0 answers 55 views
0 like 0 dislike
1 answer 53 views
0 like 0 dislike
1 answer 55 views
asked Nov 11, 2018 in Biology by danish (1.0m points)
0 like 0 dislike
1 answer 64 views
asked Nov 6, 2018 in Biology by danish (1.0m points)
0 like 0 dislike
1 answer 89 views
0 like 0 dislike
0 answers 55 views
0 like 0 dislike
1 answer 60 views
asked Nov 22, 2018 in Chemistry by danish (1.0m points)
0 like 0 dislike
0 answers 44 views
0 like 0 dislike
1 answer 44 views
asked Nov 19, 2018 in Physics by danish (1.0m points)
0 like 0 dislike
0 answers 38 views
Welcome to Free Homework Help, where you can ask questions and receive answers from other members of the community. Anybody can ask a question. Anybody can answer. The best answers are voted up and rise to the top. Join them; it only takes a minute: School, College, University, Academy Free Homework Help

19.4k questions

18.3k answers

8.7k comments

7.0k users

Free Hit Counters
...