| | |
C++ and Html Files
Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved |
Hi All,
I have taken up this home project just for my pastime.
My objective is to take a html file and then make a complete new webpage with a specific keyword.
It basically is a find and replace type of method where my existing file contains a specific keyword where my parser comes through and edits.
So my basic approach was to ;
1)Read the initial html file line by line and move them into a vector containing strings
2)Then use the parse function on the string and then paste the string into a file.
I have pretty much succeeded doing all the above. And it the created page looks fine on my computer.
But when i upload it into my server. nothing is visible and when i open it up with a html editor Only The First line which is a html tag
Is visible.
The rest of the html doesnt seem to be displayed.
Here is a basic example of what i was doing
Well, As i have not succeeded in getting my desired output. I wanted to ask whether anyone knows why this is happening?
I have taken up this home project just for my pastime.
My objective is to take a html file and then make a complete new webpage with a specific keyword.
It basically is a find and replace type of method where my existing file contains a specific keyword where my parser comes through and edits.
So my basic approach was to ;
1)Read the initial html file line by line and move them into a vector containing strings
2)Then use the parse function on the string and then paste the string into a file.
I have pretty much succeeded doing all the above. And it the created page looks fine on my computer.
But when i upload it into my server. nothing is visible and when i open it up with a html editor Only The First line which is a html tag
•
•
•
•
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
The rest of the html doesnt seem to be displayed.
Here is a basic example of what i was doing
c++ Syntax (Toggle Plain Text)
while(!inputfile.eof()) { string k; getline(inputfile,k); parse(k); outputfile<<k<<endl; }
Yes exactly. On my Windows Computer it opens correctly. Apart from some scripts which arent running. But when i put it onto my server the whole thing is just dissapering
my host is byethost.com in his free pack.
my host is byethost.com in his free pack.
NO. I run the exe file manually and after the output file is created. I have uploaded it to the server.
I dont seem to understand whether it is the coding or the way which browsers read html.
I dont seem to understand whether it is the coding or the way which browsers read html.
Well Yes. If i check the source in my computer it completely is showing up . But when i check the source in the Server it displays Blank............
Other files work. But the files generated by the program do not. i have been working on this from the past 15 hours or so to make it work. Uploading files clearing the cache and then again trying but, i just am unable to find the flaw.
![]() |
Similar Threads
- html files for seo (Search Engine Optimization)
- How to count the number of HTML files with a given content (Java)
- Compiled HTML Help Files (Windows Vista and Windows 7)
- Using VBScript to read multiple HTML files (Visual Basic 4 / 5 / 6)
- Using VBScript to manage HTML files (Visual Basic 4 / 5 / 6)
- Is MAC OS capable of opening HTML files? (Mac Software)
- open html files in jar (Java)
Other Threads in the C++ Forum
- Previous Thread: srand and while() problem
- Next Thread: Poisson Probability..
| Thread Tools | Search this Thread |
api array arrays beginner binary bitmap c++ c/c++ calculator char char* class classes coding compile compiler console conversion convert count data database delete desktop developer directshow dll dynamic dynamiccharacterarray email encryption error file forms fstream function functions game getline google graph homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg sorting string strings struct template templates test text tree unix url vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






