Advanced Topics in C: Getting Started with File Handling
C 17
| Expert
- 18 videos | 2h 31s
- Includes Assessment
- Earns a Badge
File handling is an integral part of many medium-to-large-scale programs in C. Files are the most convenient way of managing data for the wide range of programs of this size. You will start this course by considering the advantages of using files in C and the most important functions for file handling, which are fopen() and fclose(). Explore the modes that fopen() can be used with and read and write data to text files. Begin by reading in individual characters with the fgetc() function, whole strings from a file using fgets(), and structured data with the fscanf() function. Discover how to use the r+, a+, and w+ modes, before turning to writing structured data using the fprintf() function. Next, learn how to read and write binary data by leveraging the fread and fwrite functions and the wb and rb modes. Finally, you will perform file seek operations using the functions fseek, ftell, and rewind to control the position your program is operating on in the file stream.
WHAT YOU WILL LEARN
-
discover the key concepts covered in this courseoutline the basic concepts of file handling in C and when they are most appropriate to useidentify fopen() file modesrecognize common file functionscreate file handlerscompare the read, write, and append modesread in characters from a fileread in strings to an arrayread in structured data
-
write data out to a fileread in data using r+, w+, and a+ modeswrite out structured datawrite out binary data using fwrite()read in binary datawrite out and read in structs from binary filesposition a file pointer using the ftell() and fseek() functionsmove a file pointer using the fseek() and rewind() functionssummarize the key concepts covered in this course
IN THIS COURSE
-
2m 7s
-
6m 21s
-
6m 21s
-
7m 13s
-
7m 53s
-
7m 30s
-
6m 49s
-
6m 30s
-
10m 17s
-
6m 46s
-
7m 36s
-
4m 43s
-
7m 25s
-
4m 54s
-
7m 51s
-
8m 30s
-
8m 20s
-
3m 25s
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.
Digital badges are yours to keep, forever.