Notice: Undefined offset: 13178675 in /var/www/html/qa-external/qa-external-users.php on line 744
is it possible to upload files (to onlinegdb) that your code can see? - OnlineGDB Q&A
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.

is it possible to upload files (to onlinegdb) that your code can see?

+9 votes
asked May 19, 2025 by (310 points)
i am trying to make a python code that runs a LLM (large-language-model) ai. i have the file, and the code cant run on my pc, so i am wanting to upload it to onlinegdb so that my code can see the file, and use it without having it on my pc. is this possible?

1 Answer

+1 vote
answered May 21, 2025 by MiAn Abdullah (160 points)
Yes, OnlineGDB allows you to upload files (via an "Upload File" button) that your code can then access for input/output operations, just like local files.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and receive answers from other members of the community.
...