What's new

C & C++ Patulong po C programming

na try mo na to ts?
C++:
// using ofstream constructors.
#include <iostream>
#include <fstream> 

std::ofstream outfile ("test.txt");

outfile << "my text here!" << std::endl;

outfile.close();

Reference: You do not have permission to view the full content of this post. Log in or register now.
 
na try mo na to ts?
C++:
// using ofstream constructors.
#include <iostream>
#include <fstream>

std::ofstream outfile ("test.txt");

outfile << "my text here!" << std::endl;

outfile.close();

Reference: You do not have permission to view the full content of this post. Log in or register now.
okay na lods, pero need dapat name ng student after user input then automatic siya mag lagay ng .txt
Thank you! Nagawa ko na hehe
 

Similar threads

Back
Top