
PRO
dbeard
USA
Asked

I have created a file by downloading data from the web.
this is the line of code
FileWrite($DataFile,HTTPGet($url1))
Where $DataFile is the file location on my harddrive and url1 is the where the data is on the web.
The data gets successfully wrote to the hard drive.
Now my next line of code is $line = FileReadLine($DataFile).
The first line of the Data file is: <!DOCTYPE html>
This fails with the error Input string was not in a correct format.
Now this used to work but with ARC this fails.
What format should the Datafile be in for this to continue?
Related Hardware EZ-B v4
That's a different question, the website content is dynamic, does not make sense to list all the questions when a page is loaded. Look to twitter when you scroll down to the last visible post, the page requests more content from the server same thing here.
synthiam page captures the document page scroll:
and calls the function addSearchContent
the function executes an ajax call to the server /api/search/byType and the server returns more html content (i.e. questions) that content will be appended to a specific document placeholder:
short story when you request the questions page a fixed number of questions are returned, after each scroll more questions are retrieved from the server.
you can read more about "infinite scroll": http://harshw.com/infinite-scroll-using-jquery-asp-net-mvc-mustache-entity-framework-paginate/
You lost me at infinite scroll.
But I do understand this (I think) the code only reads a page at a time. It will take me some time to digest the above.
one last question for the day. BTW. I have it working now and getting the data from the page thanks to your help.
Here is the question. this is what the data looks like: >5:26 PM</td> The data I want is the 5:26 PM. But depending on the time of day it could be 10:26 PM. Is there a one-liner function that can pull the 5:26 PM or 10:26 PM out from between those markups really easy without including the other stuff?
If the file is locked, you have to close the file from reading with the close command. Because reading the file keeps the file open while you read it.
I missed that method, but i don't see an equivalent writeClose
Because there is no write. It's append. Appending just keeps appending to an existing file or creates a new one. There's no reason to keep a file open for appending. The only point to keeping the file open for reading is to know the position.
I've added two new methods for getting the current read position and getting the file length. It'll be in today's release.
This commands locks the file and does not release the file. Is that an expected behavior ?
@dbeard:
Example to capture the red part
The forum break's the JavaScript code, posted code picture:

@DJ Please read my previous post!Here is my program for getting dow jones data. I know it is a mess, but it works.