What about about using a stack.
Push a letter down on the stack every letter that gets entered.
When input is done just read the stack from the top to bottom.
Type: Posts; User: Pharoh
What about about using a stack.
Push a letter down on the stack every letter that gets entered.
When input is done just read the stack from the top to bottom.
Thank you Salem.
using "rb" was the trick in the fopen funtion.
If the string is always the same length there is a way to code it yes.
If the string is different lengths each time I'm not experienced enough to help you.
#include <stdio.h>
void main()
{
FILE *filein;
int array[256]={0};
int input=0;
bool done=false;
Hello, I hope you can welcome one more newbie into the ranks!
For practice I've been trying to make a program (16bit dos) that reads each byte in a file. I've set up an array of 256...