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