Hey,
How do I create a file from a C program? I want to check if the file exists and if it doesnt, then create it. I am using the following code to check if it exists:
filecheck()
{
b=fopen("password.csv","r+w");
if(b==NULL)
{
// need code for creating a file
}
}