Answer to Question #210006 in C++ for ASAP

Question #210006

Topic: Files and Streams


Codes discussed will be posted here. Write your conclusion on the File stream discussion. 


Filename: "Test.txt"


Given problem:


Andrew Miller 87 89 65 37 98



*Note: Need the proper codes

*Note need proper codes and conclusion on how its done and about the results. And please give the proper solution and explanation.

*Note: Show complete solution and give a conclusion on why did you use that code for the given problem



1
Expert's answer
2021-06-23T17:05:58-0400
#include <iostream>
#include <fstream>
using namespace std;


int main() {
  // Create and open a text file
  ofstream f("Text.txt");


  // Write to the file
  f<< "Andrew Miller 87 89 65 37 98";


  // Close the file
  f.close();
}

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 the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS