yes I am sure that I have the right headers, and I made sure that I have the text file available too. I ran this at school on a linx os machine and it ran fine but when i run it here at home on a win98se machine it just outputs random characters, not the characters that I have stored in the text file.
This is my function.........apstring IfStream()
{
Saying that you are "sure" does not really help. You should have responded with what you linked. (Actually, a simple program that illustrates your problem, with the compile log included is the way to go) I can't tell you how many times folks were "sure" their "Hello world" was right, when it wasn't close.
And stay on one thread...don't start any more new ones!!!!!!
Wayne
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Here is an simple (I wrote it after all) example I worked on a few months ago to show file status error stuff for C++ notation. Retarded, but it works...
yes I am sure that I have the right headers, and I made sure that I have the text file available too. I ran this at school on a linx os machine and it ran fine but when i run it here at home on a win98se machine it just outputs random characters, not the characters that I have stored in the text file.
This is my function.........apstring IfStream()
{
ifstream infile;
infile.open("Test.txt",ios::in);
}
Saying that you are "sure" does not really help. You should have responded with what you linked. (Actually, a simple program that illustrates your problem, with the compile log included is the way to go) I can't tell you how many times folks were "sure" their "Hello world" was right, when it wasn't close.
And stay on one thread...don't start any more new ones!!!!!!
Wayne
Here is an simple (I wrote it after all) example I worked on a few months ago to show file status error stuff for C++ notation. Retarded, but it works...
Wayne
#include <iostream>
#include <fstream>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
int main(void)
{
ifstream myfile("waynesatwit");
if(myfile.rdstate() == ios::failbit)
cout << "Error...!\n";
else
cout << "Found him\n";
myfile.close();
cout << "hello world\n";
system("PAUSE");
return 0;
}
Wayne