| |

VerySource

 Forgot password?
 Register
Search
View: 691|Reply: 2

Ask for advice on how to read xml file streamreader

[Copy link]

3

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 Invalid IP Address

Post time: 2020-10-16 11:30:01
| Show all posts |Read mode
Ask for advice on how to read xml file streamreader
Reply

Use magic Report

0

Threads

32

Posts

20.00

Credits

Newbie

Rank: 1

Credits
20.00

 China

Post time: 2020-10-16 13:45:01
| Show all posts
StreamReader sr = new StreamReader(@"path\xx.xml of the xml file"); //You can also use the second parameter to specify the encoding
string xml = sr.ReadToEnd();
//Print xml
Reply

Use magic Report

3

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 Invalid IP Address

 Author| Post time: 2020-10-16 14:15:01
| Show all posts
If I want to read an XML file on FTP, how come I always prompt that I can't find the file.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list