Allright I've read some posts about writing stuff to files,inputs but still am confused.
First what I am using for writing:
int sInteger=10;
char*sString="test";
FILE *sample=fopen("file.rwl","w");
fprintf(sample,"%i%s\n",sInteger,sString);
fclose(sample);
This one works pretty well.
But how to read results?
ADDED ON EDIT: And how to store them in the variable?
Next. I want to make simple input/output that resets on Return keypress.
What I've tried:
char output[32];
char *input;
input=dbEntry();
sprintf(output,"You wrote: %s",input);
dbText(10,10,output);
But I got: "You wrote: (null)" and text appears behind "(null)".
Any help will be appreciated.
-Murloc.
Theory-When you know everything,but nothing works.
Practice-When everything works,but you don't know why.
Programming merges these two-Nothing works,and you don't know why.