refer to what ithelp said above. You need to escape your \ inside the quotes, so your file name string probably needs to be "C:\\Dev-Cpp\\employee.txt"
Also it is better to explicitly state the mode in which you want to open the file, and then check if the file pointer is valid or not before proceeding to try and read the contents of your file.
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.