title: How to write and read to Files using pipe in C
body: <p>How can I read a file then transfer its contents to another file using pipes from register 1 to register 2 in C programming?</p>
  
  <p>I understand how to do this when there is no file involved; meaning if the input is simply a string which the user inputs, then I create two processes using fork and use read and write. However, I have been struggling for 4 days straight trying to figure out how it works with file as an input... </p>