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