Alright I know that a program can add files and even search in the database for matching file's but how would one make something that can add a file based on what the user puts in as followed
1 2 3 4 5 6 7 8 9 10
#include <iostream>
#inclue<string>
usingnamespace std;
string ans
int main()
{
cin >> ans;
}
then after that take what ans is and make a file by what that might be.
This will take an input, then open a file with that name. If the file doesn't exist, it is created. If the file does exist, then its contents are replaced with nothing (for now).