CS 243 Homework #4
10/23/06
In your home directory,
create a subdirectory named: homework4
Part 1:
In your homework4 directory,
create part1.c, compile, and run part1
which should do the following:
read two arguments from the command line:
cmd line arg1 should be a string of letters
cmd line arg2 should be a simple file basename
Your program should
write the arg1 letters
followed by newline
to the arg2 file
in the current directory.
Create the file if it does not already exist.
Append to the file if it already exists.
Hint: see pages 135-137.
Note: do not use getopt.
Assume the arguments are passed in the correct order.