Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HTML File to Table
#1
Guys,

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

I've tried:

Macro Macro53
Code:
Select All      Help
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!


Attached Files
.txt   CORN_05_05_2017.txt (Size: 192.1 KB / Downloads: 39)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)