Does your database.txt file contain any data? Your 'add' logic tries to store it, but the filehandle is closed so nothing can be written. Your 'get' logic opens the file but never reads from it. Even if there was some data in there, you would never see it.
UPDATE: see File IO Tutorial.
In reply to Re: Some one help me with this code.how to make it work.
by GotToBTru
in thread Some one help me with this code.how to make it work.
by yedukondalu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |