Thanks for reply PeterH. What I was trying to do with reading of the file is just a way for the arduino to know when to spin a motor as well as other physical actions. I was trying to create a file inside the file that is the website because I know the code that checks to see if the files are there, and the use that as a trigger for the arduino to do things.
the websitewww.itcup.skuttcatholic.com,which is the same stored the SD card i have , has a an alarm function. All I am trying to do is get my arduino to spin motors and the such when the alarm that you set on the website "goes off". I was just using the file creation in the website itself as a trigger.
As in:
if (typeof this.hourwake!="undefined"){ //if alarm is set
if (this.ctref.title==(this.hourwake+":"+this.minutewake+":"+this.secondwake)){
clearInterval(jsalarm.timer)
countdowntimer()
var object = new ActiveXObject("Scripting.FileSystemObject");
var file = object.CreateTextFile("alarm.txt", false);
}
}
with this being the file creation:
var object = new ActiveXObject("Scripting.FileSystemObject");
var file = object.CreateTextFile("alarm.txt", false);
If there are other ways to accomplish this it would be great if i could know it
thanks