#read, modify, and save is a binary file that contains a sales list. Need help please.

12 messages · Page 1 of 1 (latest)

rare bloomBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For more information use !howto ask.

modest lichen
#

Here is how the file Util.cpp is structured.

#

and these are the two entries I need to add While making the copy, you will change two items:

  1. Modify the first entry, making these changes:
    a. Price: 1,000,000
    b. Item ID: 12345
    c. Name: “CS 3322” (make sure it’s in an array that’s big enough!)
  2. Add a new entry at the end:
    a. Timestamp: 1613412000
    b. Item ID: 6530927
    c. Price: $89.99
    d. Name: “Advanced Programming in the UNIX Environment by Stevens and Rago”
    (warning: this is more than 49 characters!)
rocky ridge
#

First of all this isn't C. Second of all we won't do your homework for you.

modest lichen
rocky ridge
#

ah ye, didn't read the entire message after seeing much of an assignment and very little code, especially since it was C++

modest lichen
#

but since I cant use fstream, etc. I gotta use Open() method and write(). assumed it was C

#

partially

#

!close

rare bloomBOT
#

Thank you and let us know if you have any more questions!

#

[SOLVED] read, modify, and save is a binary file that contains a sales list. Need help please.