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
#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();
}
Comments
Leave a comment