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.

1 Answer

0 votes
answered Apr 13, 2018 by Shane Such (840 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++
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.
...