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 save a file in folder?

0 votes
asked Aug 23, 2019 by Treasure Richardson (120 points)

3 Answers

+1 vote
answered Aug 29, 2019 by osazee
How to save a file in a folder is very simple who first select where you want your folder to be sent  to then you  select your folder and then on top of the file explorer who will see move click the arrow and it will show all  the places onthe places onthe file explorer and tap where ever you pick and then you have saved it
0 votes
answered Aug 31, 2019 by anonymous
Open a file in write/append mode etc, write into etc, close. File will save in folder where scripts are held by default or can state the path. In C:

FILE *(file ptr name);

file pointer = fopen("file name/path name", "mode");

do something to file opened e..g write into

fclose("close file pointer"); (saves file)
0 votes
answered Aug 31, 2019 by anonymous
Open a file, write/append etc the file. Close the file.

FILE *ptr;

ptr = fopen("file name/path", "mode");

write to file etc

fclose("ptr"); //closes and saves file
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.
...