stock managment code with how to open/close,reading from the file,writting to the file,update,dalate.