well I think I found a way of writing correctly to a file...
Thanks a lot guys your help is much appreciated!!!
If I have more problems I'll post them.
Once again, thank you very much!
Regards,...
Type: Posts; User: fiveco
well I think I found a way of writing correctly to a file...
Thanks a lot guys your help is much appreciated!!!
If I have more problems I'll post them.
Once again, thank you very much!
Regards,...
any help guys? :(
nevermind all the previous.
I will do something simple
given that the "httpd.conf" file is something like that
MaxKeepAliveRequests 0
Timeout 0
the fscanf i am using looks like that
wow great tips!!
I lost ya somewhere guys though : /
my
while (fscanf(ifp, "%s %s", fstring, &score) == 2) {
fprintf(ofp, "%s %s\n", fstring, argv[2]);
...
actually the file isnt always the same in size what i left out (since it didnt matter)
was that if the user types for example updconf hello 55 it will add the word hello and the value 55 next to it...
Thanks for the tips!
so you think strstr() is needed to find the variable in a file?
How can i do that with fscanf and fprintf (or i cant?)
As far as I know fscanf and fprintf is a bad choice...
Hi all,
first of all congrats about this great forum it has been a real help for me since I started to learn C (that is 3 months ago :) ).
As you understand I am a complete newbie so I would like...