samedi 18 janvier 2020

Read input from text test file and print it to another text file

I decided to try coding in linux instead of windows and I have question . I currently taking course in C and when I have assignment I need to check the code with some tests from the course.

In windows I used to do something like that: First I opened cmd in the code file with the test.txt in it. Then I write this : hw5q1.exe<hw5q1in1.txt>hw5q1out1.txt and my program would print the output in hw5q1out1.txt file.

Is there a way I could do the same on linux ? I am using ubuntu and atom text editor.

Aucun commentaire:

Enregistrer un commentaire