65 789
Assignments Done
99,4%
Successfully Done
In October 2018

Answer to Question #21729 in C++ for saif

Question #21729
what the code to create file that can insert , output and edit the data in file ?
Expert's answer
#include <iostream>

int main(int argc, const char * argv[])
{
FILE *f;
char *FileName = "File.txt";
char *Input = nullptr;

std::cin >> Input;

f = fopen(FileName, "w");
fputs(Input, f);

return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions