Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Hey I need to create multiple text files in C? I used this to code it in C++ cha

ID: 3616899 • Letter: H

Question

Hey I need to create multiple text files in C?

I used this to code it in C++
char buffer [50]={"myFilex.txt"};   ofstream out;   for (char i='1';i<'4';i++)   {buffer[6]=i;    out.open(buffer);    out.close();
but I need it in C. so that it works with the other sourcefiles for my project

I used this to code it in C++
char buffer [50]={"myFilex.txt"};   ofstream out;   for (char i='1';i<'4';i++)   {buffer[6]=i;    out.open(buffer);    out.close();
but I need it in C. so that it works with the other sourcefiles for my project char buffer [50]={"myFilex.txt"};   ofstream out;   for (char i='1';i<'4';i++)   {buffer[6]=i;    out.open(buffer);    out.close();
but I need it in C. so that it works with the other sourcefiles for my project

Explanation / Answer

please rate - thanks in C #include #include int main() { char buffer [50]={"myFilex.txt"}; FILE *out; char i; for (i='1';i