Creates that many files named after your first name


Write a C program on Pond that:

Accepts 2 command line inputs: number of files to create, size of each file (in bytes). For example run your program as ./hw4 10 20 will create 10 files of size 20 bytes each. Your program should check and report not only incorrect # of arguments, but also invalid argument values, such as zero or negative.

Creates that many files named after your first name (yourname0, yourname1, yourname2... ) and writes the required number of bytes to each file. One simple strategy is to write that many number of characters since each character is one byte. The content of the files isn't important, just the size. Use ls -l to see the result and verify files of correct size were created.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Creates that many files named after your first name
Reference No:- TGS01621749

Now Priced at $20 (50% Discount)

Recommended (97%)

Rated (4.9/5)