Ok so for my program it prompts the user to enter 32 bits each separated by a space.

But while debugging I would like to be able to load a txt file or something that contains the 32 bits instead of having to enter it each time I test it.

How can I do this? (I know in gcc its a.out < input.txt);

cool. And it's from RPI. I got to UAlbany

How can I do this? (I know in gcc its a.out < input.txt);

It's the same on the Windows command line.

which directory do I put it in? it's not working

You have to find the directory the .EXE is in and set the command window into that location. Then create the file there too.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.