Write C code which pass input and output file name as command line arguments. Open the input file as read

Write C code which pass input and output file name as command line arguments. Open the input file as read only and open output file with mode rw-rw-rw. The output file will be the reverse order of content of input file. Use pread, and or pwrite system call. Do not use lseek system call. You need consider argument number error and open file error.

Leave a Reply

Your email address will not be published. Required fields are marked *