Hey I need to create multiple text files in C? I used this to code it in C++ cha
ID: 3616895 • 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 #include #include int main() { char buffer [50]={"myFilex.txt"}; FILE *out; char i; for (i='1';iRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.