Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am wondering if it is possible to get the data from a textfile.

These are the steps I'm planning to do:

1. Copy the outerhtml of the page and paste it in a txtfile.
2. Upload the txtfile in a C# Program
3. Get the data in the textfile by class/xpath.


I can't find any reference regarding this.

What I have tried:

I did try HTMLAgilityPack directly in a webpage in a browser but I don't have idea how it will work in an uploaded file.
Posted
Updated 9-Dec-16 1:36am
Comments
ZurdoDev 9-Dec-16 7:06am    
What part are you stuck on?

1 solution

Well, you know what you want to do. All you have to do is figure out how to make it happen with the tools at hand. It's called "being a programmer".

You need the path to the uploaded file, and the code to parse (you can probably use HTMLAgilityPack to do that). I don't understand how you couldn't make HAP work without having to upload the file, but whatever.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900