Using <fstream.h> <IOSTREAM> or whatever is there a way to store a variable in a file like a .txt file or whatever and some otherstuff and go strait to that variable and read it with a pointer or something?
Using <fstream.h> <IOSTREAM> or whatever is there a way to store a variable in a file like a .txt file or whatever and some otherstuff and go strait to that variable and read it with a pointer or something?
if(you.control(own.life())==true)
{...}
else
{
someone.else();
will()
}
what are u trying to do?
He's talking about accessing a variable stored in a file through a pointer. Sorry, it's impossible (unless you're running on virtual memory, but that doesn't count.)
I guess i have to try to right a class or two form it then
if(you.control(own.life())==true)
{...}
else
{
someone.else();
will()
}
Do you mean like a pointer to part of a file on the hard disk?
Like a pointer or reference or whatever to find a spot and be able to read from it.
I suppose if you saved the offset into the file where you wrote the particular piece of data you are interested in, then you could later use fseek to go to that location when you read from the file.
"Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
-Christopher Hitchens
How do u use that effectivley? plz explain