Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.
Login
Login
OnlineGDB Q&A
Questions
Unanswered
Tags
Ask a Question
Ask a Question
how to read data from (json file) in c++ and write to a table in table file??
0
votes
asked
Apr 13, 2018
by
Alaa Abu Khader
(
120
points)
The requirement of this assignment is to write a program that opens a json file with the same schema as the sample file provided (but with more items). The json file path is given as an argument to the command line. The program retrieves the data in the json file and forms the data in a table.
c
Your answer
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or register.
1 Answer
0
votes
answered
Apr 13, 2018
by
Shane Such
(
860
points)
you need to #include<ifstream> then declare the ifstream variable,
ifstream i;
then you need to go, i.open("filePathHere");
you might need to do more if you need to write to the file.
commented
Apr 14, 2018
by
Alaa Abu Khader
(
120
points)
my problem after read from file how can i sort the json data in table in c++
Your comment on this answer:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or register.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...