Well I use cygwin compiler, I recommend it. Umm I don't know if it will work without cygwin but ex. sleep(5); would make the program stop for 5 seconds before continuing. Again I think that is a cygwin only command, but good luck.
Well I want to be able to read a text file into a variable. I have made something that writes a text file. Pretty much here's a not so good example, and yeah.. I dont feal like writing correct syntax but you get the idea.
ex.
dud = fopen("hi.txt");
//unsure how to do this properly.
if (dud ==...
I found a site that said ajax could be used with javascript to save and load text files on a client computer, but it did not say how. The js I am making used cookies, but I needed more storage than what is allowed for cookies.
Does anybody have a short (or long) example on how to save and load a text file from a client computer using ajax? I will be grateful for any examples/links.
Well, I'm making a funny little game. So the cookie or what anybody else has to offer must be able to store more than one value inside the file. ie strength, hp, etc. My current problem with cookies: Ok, I set a cookie value clicking a button. Then I click the read cookie button. It will read...
Because I am having extremely wierd problems with cookie saving, is there a way to save files on clients computer? If not possible on client is it possible on server? I have tried searching google and going through books, but I haven't been able to find anything useful.
I have a text file called s1.txt, and it has one value of 12345. Can somebody post an example of how to read this file into a variable? My tries have been pointless, I can't get fopen to work for my purpose.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.