Advanced Topics in C: Getting Started with File Handling

C 17    |    Expert
  • 18 videos | 2h 31s
  • Includes Assessment
  • Earns a Badge
Rating 4.5 of 44 users Rating 4.5 of 44 users (44)
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 course
    Outline the basic concepts of file handling in c and when they are most appropriate to use
    Identify fopen() file modes
    Recognize common file functions
    Create file handlers
    Compare the read, write, and append modes
    Read in characters from a file
    Read in strings to an array
    Read in structured data
  • Write data out to a file
    Read in data using r+, w+, and a+ modes
    Write out structured data
    Write out binary data using fwrite()
    Read in binary data
    Write out and read in structs from binary files
    Position a file pointer using the ftell() and fseek() functions
    Move a file pointer using the fseek() and rewind() functions
    Summarize the key concepts covered in this course

IN THIS COURSE

  • 2m 7s
  • 6m 21s
    In 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
  • Locked
    3.  File Modes in C
    6m 21s
    Learn how to identify fopen() file modes. FREE ACCESS
  • Locked
    4.  Functions Used to Parse Files in C
    7m 13s
    After completing this video, you will be able to recognize common file formats. FREE ACCESS
  • Locked
    5.  Connecting to Files
    7m 53s
    To find out how to create file handlers, consult a programming manual or search the internet. FREE ACCESS
  • Locked
    6.  Using Different Modes to Parse Files
    7m 30s
    In this video, you will learn how to compare the read, write, and append modes. FREE ACCESS
  • Locked
    7.  Reading Data from Files
    6m 49s
    Learn how to read characters from a file. FREE ACCESS
  • Locked
    8.  Storing Data from Files in Strings
    6m 30s
    During this video, you will learn how to read strings into an array. FREE ACCESS
  • Locked
    9.  Using Scanf() to Read in Structured Data
    10m 17s
    In this video, you will learn how to read in structured data. FREE ACCESS
  • Locked
    10.  Writing Data to Files
    6m 46s
    In this video, you will learn how to write data out to a file. FREE ACCESS
  • Locked
    11.  Using r+, w+, and a+
    7m 36s
    In this video, you will learn how to read in data using r, w, and a modes. FREE ACCESS
  • Locked
    12.  Using the fprintf() Function
    4m 43s
    Find out how to write structured data. FREE ACCESS
  • Locked
    13.  Writing Out Binary Data
    7m 25s
    In this video, learn how to write binary data using fwrite(). FREE ACCESS
  • Locked
    14.  Reading in Binary Data
    4m 54s
    During this video, you will learn how to read binary data. FREE ACCESS
  • Locked
    15.  Serializing and De-serializing Structs
    7m 51s
    In this video, learn how to write out and read in structures from binary files. FREE ACCESS
  • Locked
    16.  Controlling the Position of a File Pointer
    8m 30s
    In this video, you will learn how to position a file pointer using the ftell() and fseek() functions. FREE ACCESS
  • Locked
    17.  Moving a File Pointer
    8m 20s
    In this video, you will learn how to move a file pointer using the fseek() and rewind() functions. FREE ACCESS
  • Locked
    18.  Course Summary
    3m 25s
    0716253e-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.

YOU MIGHT ALSO LIKE

Rating 4.6 of 13 users Rating 4.6 of 13 users (13)
Rating 4.2 of 59 users Rating 4.2 of 59 users (59)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.3 of 50 users Rating 4.3 of 50 users (50)
Rating 4.3 of 51 users Rating 4.3 of 51 users (51)
Rating 3.6 of 13 users Rating 3.6 of 13 users (13)