I'm working on a homework project and i'm trying to store inventory data into a file.
The inventory data size shouldn't be too large cause technically no one is going to really use it.
I need to write these contents to a file:
• Item Description
• Quantity on Hand
• Wholesale Cost
• Retail Cost
• Date Added to Inventory
I am going to need to make an interface that allows me to do this:
• Add new records to the file
• Display any record in the file
• Change any record in the file
Struct would be the easiest way to go about this imo. If I can just figure out how to read / write structs to a file this should be really easy.
If you could provide a small example on how to do this I would really appreciate it.
Thanks!