Writing output into a .txt file from reading input from a .txt file

Jan 15, 2019 at 5:51am
I want to store the output into a .txt file by taking input from an another.txt file
where the input is in the format
The first line denotes no of test cases (T) then t line follows
two integers
example
5
1 2
2 3
3 4
4 5
5 6
can anyone send me the code for this
Jan 15, 2019 at 8:42am
can anyone send me the code for this
Why is someone supposed to do this?
Jan 15, 2019 at 8:51am
copy a.txt b.txt
Jan 15, 2019 at 9:21am
By the way where did you get this question?
Topic archived. No new replies allowed.