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.

How to download json file in python_lang from our computer hard disk in gdb online ?

+6 votes
asked May 30, 2022 by Nick Hernandez (180 points)
import json
from pprint import pprint

with open("company1.json","r") as file:
    d = json.loads(file.read())
Output :
FileNotFoundError: [Errno 2] No such file or directory: 'company1.json'
How to fix above error in gdb online python compiler ?

1 Answer

0 votes
answered May 31, 2022 by Peter Minarik (86,040 points)

In your OnlineGDB project, on the left side of the RUN button, there is an Upload File button.

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.
...