Sign in to follow this  
pbbm2000

File io help

Recommended Posts

ifstream fin;
fin.open(settings);
fin >> entry.left >> entry.right >> entry.top >> entry.bottom;
fin >> text.left >> text.right >> text.top >> text.bottom;
fin >> drag.left >> drag.right >> drag.top >> drag.bottom;
fin.close();
		
fin.open("ConsolCommands.txt");
int a = 0;
fin >> a;
fin.close();


The first part works fine but then I open ConsolCommands.txt and try to input the first int a always always stays equal to zero. Any help would be great thanks!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this