CS 241 Data Organization using C
Lab 12: File IO


November 29, 2018

The purpose of lab today is to work on reading/writing from file.

1 Getting Started

Today we’re going to be reading/writing from file. You can use the files from this zip file https://www.cs.unm.edu/~vasek/cs241/hw/files.zip.

You will be building up a file called readFiles.c.

2 To do during lab

You will receive points for doing the following:

Your code should not leak any memory when tested with valgrind.

3 More time?

Continue working on homework 9 and the associated testing code. Test your code with valgrind to make sure that your code doesn’t leak any memory.

4 Turning in your program

It’s ok not to finish this assignment – get through as much as you can.

Zip up your readFiles.c file into a zip file entitled yourCSUsername.zip. Then drop the zip file into the dropbox under the lab-12 folder.