title: C programming: Redirect the output of an encryption program into a .txt file
body: <p>I have written an encryption program in c but how can i redirect the output in a <strong>.txt</strong> file .I didn't use file processing in this encryption program. I have tried with redirection operator(./encrypt>txt.txt). I am using gcc compiler.Thank you so much in advance. </p>