Please use code tags, so the code you posted is readable.


I am using the code below to open a file but for some reason it is not reading anything.
You opened the file for output. Also, where do you read something ?