以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- [求助] 自动换行输出到文本 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=109274) |
-- 作者:农村人 -- 发布时间:2017/11/8 13:12:00 -- [求助] 自动换行输出到文本 For i As Integer = 99 To 1 Step -1 Dim txt As String = "1TB" Dim mulit As String = format(i,"0000") Dim values() As String values = mulit.Split("|") For Index As Integer = 0 To Values.Length - 1 FileSys.WriteAllText("D:\\data\\txt.txt", txt & Values(Index), True) ‘需要输出到文本时,字符串会自动换行’ Next Next |
-- 作者:有点甜 -- 发布时间:2017/11/8 14:25:00 -- dim str as string = "" For i As Integer = 99 To 1 Step -1 Dim txt As String = "1TB" Dim mulit As String = format(i,"0000") str &= txt & mulit & vbcrlf Next FileSys.WriteAllText("D:\\data\\txt.txt", str, False) \'需要输出到文本时,字符串会自动换行\' |
-- 作者:农村人 -- 发布时间:2018/12/13 15:48:00 -- 你好,我是用这个代码获取的 For Each File As String In FileSys.GetFiles("D:\\") Output.Show(File) Next
|
-- 作者:有点甜 -- 发布时间:2018/12/13 18:14:00 -- 认认真真看懂2楼代码的意思。 |