HTML File to Table

Creating complex macros, dialogs, solving complex tasks, programming.

HTML File to Table

Postby lostruler on Tue May 16, 2017 8:17 pm

Guys,

Do you know how can I convert the table in the Html attached in a csv file ?

I've tried:

Macro Macro53     ?
HtmlDoc k.InitFromText("C:\Users\Public\Documents\CORN_05_05_2017.txt")
ARRAY(str) a
k.GetTable(0 a)
int i nc=21
ICsv x._create; x.ColumnCount=nc
for i 0 a.len/nc
,str& firstCell=a[i*nc]
,firstCell.rtrim("?")
,x.AddRowSA(i nc &firstCell)

str csv; x.ToString(csv); out csv
x.ToFile("C:\Users\Public\Documents\Corn.csv")




Thanks!
Attachments
CORN_05_05_2017.txt
(192.1 KiB) Downloaded 5 times
lostruler
 
Posts: 83
Joined: Wed Jan 08, 2014 7:01 pm

Return to Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron