I am developing a pos application with c language,
What i am trying to achieve is to add, and delete users. Adding is not a problem at all. but deleting is becoming too tricky What i am doing is, i am seaching for the record using fread(), then as soon as i find it, I set the whole record into spaces and this part is doing fine, the problem is when i try to read that file as soon as i delete a record, i cant read past the deleted record but if i restart my POS machine i can read past the deleted record. Any Help
DizaFire 0 Newbie Poster
Recommended Answers
Jump to PostPost your/some of your code
Jump to PostI recommend you to use binary file read write for POS applications. Create an array of WaiterInfo and re-write all data to file every time that fields changed. Dont append to file or something like that. In this way you must add to or delete from array then write whole …
All 5 Replies
Banfa 597 Posting Pro Featured Poster
DizaFire 0 Newbie Poster
Banfa 597 Posting Pro Featured Poster
DizaFire 0 Newbie Poster
VatooVatoo 21 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.