File handling query


Sir, please explain why isn’t the code getting accepted.