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.Code:FILE *newNodes = fopen("new_nodes.tmp", "w+"); ... fputs(argv[1], newNodes); ... char node[15]; ... 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
/D