Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a C++ program where you can edit text files. For example, data.txt has the following lines: Beast Boy, 075000, BBY, 0890 Phoenix, 000390,

Create a C++ program where you can edit text files. For example, data.txt has the following lines:

"

Beast Boy, 075000, BBY, 0890 Phoenix, 000390, PHX, 0090

"

here the 6 digit num is score and 4 digit num is rounds

And instruction.txt has the following:

"

"Beast Boy" 1 000980

"Phoenix" 2 0709

"

Here you will have to find out whether the name received from instruction.txt (here it is Beast boy and phoenix) exists in data.txt and if it does what is the integer that comes after the name. If it is 1 then update the 6 digit int from data.txt with the one in instruction.txt. If it is 2 replace round update the one data.txt with instruction.txt

Data manipulation has to be done inside the file so may need to use seekg, seekp, tellg, tellp.

Thank you.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Oracle8I Building Efficient Databases

Authors: Jonathan Lewis

1st Edition

0201715848, 978-0201715842

More Books

Students also viewed these Databases questions

Question

What are the classifications of Bank?

Answered: 1 week ago

Question

What is the most important part of any HCM Project Map and why?

Answered: 1 week ago