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 21sIn this video, you will learn how to outline the basic concepts of file handling in C, as well as when they are most appropriate to use. FREE ACCESS
-
6m 21sLearn how to identify fopen() file modes. FREE ACCESS
-
7m 13sAfter completing this video, you will be able to recognize common file formats. FREE ACCESS
-
7m 53sTo find out how to create file handlers, consult a programming manual or search the internet. FREE ACCESS
-
7m 30sIn this video, you will learn how to compare the read, write, and append modes. FREE ACCESS
-
6m 49sLearn how to read characters from a file. FREE ACCESS
-
6m 30sDuring this video, you will learn how to read strings into an array. FREE ACCESS
-
10m 17sIn this video, you will learn how to read in structured data. FREE ACCESS
-
6m 46sIn this video, you will learn how to write data out to a file. FREE ACCESS
-
7m 36sIn this video, you will learn how to read in data using r, w, and a modes. FREE ACCESS
-
4m 43sFind out how to write structured data. FREE ACCESS
-
7m 25sIn this video, learn how to write binary data using fwrite(). FREE ACCESS
-
4m 54sDuring this video, you will learn how to read binary data. FREE ACCESS
-
7m 51sIn this video, learn how to write out and read in structures from binary files. FREE ACCESS
-
8m 30sIn this video, you will learn how to position a file pointer using the ftell() and fseek() functions. FREE ACCESS
-
8m 20sIn this video, you will learn how to move a file pointer using the fseek() and rewind() functions. FREE ACCESS
-
3m 25s0716253e-bdb2-480b-b194-bafba81b906e FREE ACCESS
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.