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.

programing useing files on this webside

+11 votes
asked Oct 1, 2024 by Micha? Znisczo? (220 points)
Is it posible to upload txt files here so I can program using <fstream> library

1 Answer

0 votes
answered Oct 2, 2024 by Peter Minarik (101,340 points)
Yes, there is an "UPLOAD FILE" button just left of the green RUN button where you can upload files as part of your project. This could be an input file (e.g. input.txt) that you want to read in your program. Using a .txt extension ensures the compiler ignores the file. Other extensions may be tried to be interpreted as source code (feel free to experiment with the extensions if you feel like it).

Good luck!
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.
...