VB Question, How to read from an HTML file?
In my code, I need to read lines, each one at a time from an HTML file and put the fields of that line in a one Dimensional array.
the following is a one line example of what's in the HTML file:
Sphere <tr><td><a href="http://datasheet-web/DS_Archive/Mechanics/gen-00230150001-ds.pdf" target=_blank>00230150001</a></td><td>General Brand</td><td>DIN5401-3-A2</td><td>Ball,Sphere,3Dia,SS,+/-0.05</td><td>Active</td><td> </td><td> </td><td><a href="K:/Pro_stds/Library/All_Parts/BALLS.prt.4" target=_blank>Model</a></td><td>Acceptable</td><td><font color="#00bb00">N/A</font></td><td><font color="#00bb00">Yes</font></td><td>0</td><td>0.13</td></tr>
My problems is how do I put only the actual fields of that line in the elements of the array? I Just don't need all of the HTML Tags between the fields.
Thanks In Advance
Use .Substring(), .Find() .IndexOf(), etc to strip out the tags, and parse the data.
It's been discussed many times before. Search the forums.
David CodeGuru Article: Bound Controls are Evil-VB6
2006 Dell CSP
2006, 2007 & 2008 MVP Visual Basic If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!
By bubu1234 in forum VB Classic
Last Post: 01-21-2007, 10:25 PM
By Dralion in forum VB Classic
Last Post: 02-01-2006, 05:06 PM
Last Post: 10-03-2002, 12:27 PM
Last Post: 08-12-2002, 11:40 PM
By Larry Rebich in forum vb.announcements
Last Post: 04-02-2002, 11:45 PM
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL