This function is supposed to read from an HTML file saved as "temp.txt"... Unfortunately, it doesn't work more than once running in a loop. I'm not very good at troubleshooting, but it looks like it isn't reading from the beginning of the fiel the second, etc, times... Can someone have a look...
Ok. I am transferring the method I use for a graphing calculator game I wrote over to C++. IMy only problem right now it getting the map to read...
Does anyone know why this doesn't work???
#include <iostream>
using namespace std;
int main()
{
int map[9][16] =
{
{ 1, 1, 1, 1, 1, 1, 1...
This program is supposed to remove the HTML tags from a downloaded HTML file. Here is the code :
#include <iostream>
#include <fstream>
#include <string>
#include <windows.h>
#include <wininet.h>
#pragma comment(lib, "wininet.lib")
using namespace std;
int main()
{
ifstream inFile;
ofstream...
I am now trying to write some code that reads and writes to files in a loop.
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
ifstream inFile;
ofstream outFile;
inFile.open("temp.dat");
.
.
//Grab strings
inFile.close()...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.