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.

create a data folder in my project?

+2 votes
asked Sep 23, 2025 by jtreacy1013 (210 points)
Have cpp program in base folder.  Storing data in text files with a subfolder.

1 Answer

+1 vote
answered Sep 23, 2025 by Peter Minarik (101,340 points)

You can create directories as far as I'm concerned in OnlineGDB projects. Either you can use a C library for creating a directory (see here), or you can use the system("mkdir <DIRECTORY_NAME>") call to ask the operating system to do it for you.

How it would appear in OnlineGDB (if at all), I have no idea. Give it a try and tell us about your experience.

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