D
Daniel Padron
Ok. Maybe I shouldnt post such basic questions here in such an advanced
group but my high school programming teacher wont answer any questions
outside of his curriculum
My goal is create a program that will get feeded a url that links direcly
to a file [ex. http://www.example.com/video.avi] the program will then
determine if the file is there or not.
There are probably more efficient ways of doing what I want to do but this
is the way I have in mind:
1. dump the url's text into VB, in other words: what is actually in the
webpage. (Most likely since the file will not be there the string "File
could not be found" will be given to vb)
2. perform an [indexOf("File could not be found")] on the dumped text to
see if there if the file is acutually there.
3. if the indexOf gives a -1 that means that there was never a "file not
here" on the webpage therefore the file IS there!
Wow that was hard to explain. Please keep in mind that i'm in my first year
of programming in high school so please if you can explain in easier terms
is will be better for me to understand.
as a less important side question:
can vb DO things with websites? for example: can i write a program that
will actually fill out forms with correct data and submit them? what I have
in mind is writing programs that will send me an SMS when it is done doing
a task (using google send to phone:
http://toolbar.google.com/send/sms/index.php)
group but my high school programming teacher wont answer any questions
outside of his curriculum
My goal is create a program that will get feeded a url that links direcly
to a file [ex. http://www.example.com/video.avi] the program will then
determine if the file is there or not.
There are probably more efficient ways of doing what I want to do but this
is the way I have in mind:
1. dump the url's text into VB, in other words: what is actually in the
webpage. (Most likely since the file will not be there the string "File
could not be found" will be given to vb)
2. perform an [indexOf("File could not be found")] on the dumped text to
see if there if the file is acutually there.
3. if the indexOf gives a -1 that means that there was never a "file not
here" on the webpage therefore the file IS there!
Wow that was hard to explain. Please keep in mind that i'm in my first year
of programming in high school so please if you can explain in easier terms
is will be better for me to understand.
as a less important side question:
can vb DO things with websites? for example: can i write a program that
will actually fill out forms with correct data and submit them? what I have
in mind is writing programs that will send me an SMS when it is done doing
a task (using google send to phone:
http://toolbar.google.com/send/sms/index.php)