How to open a file?

I want to add password to my file in ubuntu linux but I want to do it in programmers's way! All I will do is hide the file and then in C++, I will ask to enter a password. If it's entered right, then the C++ will directly take you to the file (even if it's hidden).

I can make the password program but how to open a particular file after entering right password?
Last edited on
Topic archived. No new replies allowed.