Home > Net >  Find the VB.NET statements of statistical line TXT file
Find the VB.NET statements of statistical line TXT file

Time:11-06

As my TXT file path in the TextBox1, points for the statistical TextBox1 TXT file shown in the number of rows, and the value displayed to TextBox2, how to write? I use VS2013

CodePudding user response:

To join https://blog.csdn.net/xianfajushi/article/details/46346293? Ops_request_misc=% 257 b % 2522 request 2522% % 255 fid % 253 a 2522% % 2522% % 2522160456534219195264714873% % 2522 SCM 252 c 253 a % 252220140713.130102334 PC % 255 fblog. % 2522% 257 d & amp; Request_id=160456534219195264714873 & amp; Biz_id=0 & amp; Utm_medium=distribute. Pc_search_result. None - task - blog - 2 ~ blog ~ first_rank_v1 ~ rank_blog_v1-14-46346293. Pc_v1_rank_blog_v1 & amp; Utm_term=VB& SPM=1018.2118.3001.4450

CodePudding user response:

This. The textBox1. Lines

CodePudding user response:

Like this? Try not
TextBox2. Text=this. TextBox1. Lines

Vb6.0 by use of use is CreateObject (" Scripting. FileSystemObject "). The Open (Text1, 8). The Line but this statement at VB.net doesn't work

CodePudding user response:

TextBox1. Lines. Can Count

CodePudding user response:

May understand the wrong I mean, not to statistical number of lines of Text in the Text, is to statistics in the Text shows the path of the referring to the lines of a Text file,
  • Related