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 upload a .txt file for testing my code

+4 votes
asked Apr 26, 2025 by Toby (160 points)

1 Answer

+2 votes
answered Apr 30, 2025 by Peter Minarik (101,420 points)
Next to the green RUN button, on the left, there is an UPLOAD button. You can use that to upload your .txt file. Keep the file as a .txt so the build system will ignore it and will not accidentally try to interpret it as a source file breaking the build.
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.
...