I've tried your suggestions here, but it still will not open FIRSTENEMY.TXT, although it will open other files.
Type: Posts; User: trekintouretter
I've tried your suggestions here, but it still will not open FIRSTENEMY.TXT, although it will open other files.
Is there anything special I have to do to allocate memory other than declaring it as a normal variable?
Here is the code that opens a file. I have several text files, some of them work and others don't. Is there some kind of limit on the number of files a program can open?
fstream f;
char* temp;...
I have a program that reads from several text files in a folder. What I don't understand is why it reads data from one file, but not another, when they are exactly the same except for the data. Can...
Yep, even older. Borland C++ 5.02. It's what I have right now and I don't got loads of money to buy a new one, they're expensive.
I have already tried the file option. The point is that the data...
Ok, I've been working on this RPG for a long time now, and I keep getting the error, 'Too much global data', no matter what I do. I've tried several things to limit my data. For each screen in the...
Thanks for responding. What does ios::trunc mean? and seekg?
I have included it, and it still gives me those errors. But wouldn't it give me a compiler error anyway?
I am working on a game where I had too much global data. My current solution is to write the data to a file and then to read it back. Here is some code:
fstream f;
f.open("\\screens.txt", ios::in...
hey all, i'm new here. i've been working on an rpg for a while and i've come across a problem. first of all i have a matrix for every screen of the game. for example,
{2, 1, 3}
{2, 5, 4}
{3, 2,...