I am writing a shell in C, I want to take stndin commands and redirect them into some text file. ex. ls > sampleFile.txt
the information that would normally printed to