Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~237 People Reached
Favorite Forums
Favorite Tags
c++ x 2
Member Avatar for CronosAkroma

[CODE=c++]#include <iostream> #include <fstream> #include <string> using namespace std; int main() { string linea; ifstream fileIn("input.txt"); ofstream fileOut("output.html",ios::out); //working with the input text if (!fileIn) cout<<"\nERROR: Unable to read the file!\n"; else { //working with the output text if (fileOut.is_open()) { fileOut << "<html xmlns=\"http://www.w3.org/1999/xhtml"; fileOut << "\" xml:lang=\"en\">" << …

Member Avatar for WolfPack
0
136
Member Avatar for CronosAkroma

ok so here the problem the code works just adds break on to every line i want it to only add breaks to the line that don't alraedy have spaces after them. while (! fileIn.eof() ) { getline (fileIn, linea); fileOut << linea << b <<endl; }//end while is what …

Member Avatar for WaltP
0
101