"I'm go-ing craaazy..." (fin input problems
I'm going crazy here..
I think I've gone so long staring at this that I don't see the obvois...so pls
here's the thing, i want to read a line from a (temp) file into a string
the fputs works fine, i get the string i want stored in the file. i can compile and all, but the printf just prints the text, nothing else.
FILE *newNodes = fopen("new_nodes.tmp", "w+");
fgets(node, 15, newNodes);
printf("value of node is %s", node);
if i try what to me is just the same (with other names) in a test program it works fine, but not when it counts....
and im going to put and read more things in the file later, so don't just tell me to take the string directly from argv :)