Rad line by line from url
Posted: Thu Jun 15, 2017 10:36 am
I have this code thats read the entire file at once.
Is is posible to read the contence of the file line by line from the URL?
Thanks for any help
Is is posible to read the contence of the file line by line from the URL?
Thanks for any help
Code: Select all
;--------------------------------------------------------------------------
;
; Get the contence of the stations.txt from NORAD over the Internet
;
; Data is stored into Filename$
;
; Version 5 jun 2017
;
; This is an example
;
;--------------------------------------------------------------------------
InitNetwork()
Filename$ = GetHomeDirectory() + "Documents/stations.txt"
If ReceiveHTTPFile("http://www.celestrak.com/NORAD/elements/stations.txt", Filename$)
Debug "Success"
Else
Debug "Failed"
EndIf