Question
I need to convert the file below into binary and use C++ to convert it back into text form. I need to be able to
I need to convert the file below into binary and use C++ to convert it back into text form. I need to be able to see full code to do this. The strings will be read from a file so the code must be read in from a file that is already in binary and using C++ converted back to texted while reading the file in. Here is file.
Barrow-in-Furness:Vicarstown:1 Vicarstown:Ballahoo:5 Vicarstown:Crovan's Gate:7 Ballahoo:Norramby:2 Ballahoo:Crovan's Gate:2 Crovan's Gate:Cros-ny-Cuirn:2 Crovan's Gate:Kellsthorpe Road:4 Cros-ny-Cuirn:Glennock:3 Glennock:Rheneas:3 Rheneas:Skarloey:1 Skarloey:Lakeside:1 Lakeside:Rheneas:1 Kellsthorpe Road:Rolf's Castle:2 Rolf's Castle:Kirk Ronan:2 Kellsthorpe Road:Kildane:7 Kildane:Abbey:2 Abbey:Kirk Machan:4 Kirk Machan:Shiloh:1 Shiloh:Skarloey Road:2 Skarloey Road:Devil's Back:1 Devil's Back:Culdee Fell Summit:1 Kirk Machan:Peel Godred:2 Kildane:Cronk:1 Cronk:Maron:2 Maron:Wellsworth:4 Wellsworth:Suddery:3 Suddery:Brendam:4 Wellsworth:Crosby:2 Crosby:Knapford:4 Knapford:Dryaw:2 Dryaw:Toryreck:1 Toryreck:Elsbridge:2 Elsbridge:Hackenbeck:3 Hackenbeck:Ffarquhar:1 Knapford:Tidmouth:1 Tidmouth:Haultraugh:3 Haultraugh:Arlesburgh West:2 Arlesburgh West:Arlesburgh Bridge St.:1 Arlesburgh Bridge St.:Ffaquhar Road:1 Ffaquhar Road:Marthwaite:1 Marthwaite:Arlesdale Green:1 Arlesdale Green:Arlesdale:1
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started