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

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
can anyone send me the code for this
Why is someone supposed to do this?
copy a.txt b.txt
By the way where did you get this question?
Topic archived. No new replies allowed.