This is really crazy
I just created a new file with name rr.txt and it opened. Then i tried with the older file names (that were creating a problem those opened as well).
Finally able to see the output
File opened successfully
1 49
2 50
3 51
123
Now closing the file
ExitingPress any key to continue . . .
But this is really crazy stuff :-(
@nonoob
Thanks for the idea of including errno in the file. I didnt knew about it.