+ 1

How to STORE & READ text with spaces and " |" from text file?

I need to get BOOKID, BOOKNAME, BOOKSTOCK. BOOKCOMP from the user and store it the file in a formatted style. I have a problem when I enter BOOKNAME & BOOKCOMP with spaces. I need to also retrieve from files and store in those variables. Example of file contents : 1 | The Three Donkeys. | 10 | Ladybird 2 | Cinderella | 10 | Ladybird 3 | The Prince and 7 Dwarf | 10 | Ladybird So I have written some codes of my own. Please help me check my codes. And tell me where it went wrong please.. 🙏 Running out of time for my project 😕 Ps: I am beginner to c++ and new to this platform. https://code.sololearn.com/cT0sHFbK6paK/?ref=app

24th Sep 2020, 1:34 PM
THAYANANTH KUMARESAN
1 Answer
0
https://stackoverflow.com/questions/10220401/rules-for-c-string-literals-escape-character check it out
26th Sep 2020, 8:07 AM
Artem