VB TXT file content splitting

Updated on technology 2024-03-28
5 answers
  1. Anonymous users2024-02-07

    It depends on where you want to put what you read.

    For example, you want to put the contents of textbox1 into textbox2.

    Just write it directly. text is just fine!!

  2. Anonymous users2024-02-06

    sub splittxt(s as string, nlength as long, strfilename as string)

    s, what you want to split.

    nlength The unit length to be split.

    The file name generated by strfilename is automatically followed by a number. txt, as in My Files My Files.

    dim n as long

    n = len(s)

    for i = 1 to n step nlength

    tmp = mid(s, i, nlength)

    open "c:\" & strfilename & format((i - 1) length + 1, "00") &".txt" for output as #1 'If there are more, change it to 000 if there are hundreds

    The above is stored in c:, which can also be replaced by , and stored in the directory where the application is located.

    print #1, tmp

    close #

    nextend sub

    private sub command1_click()

    dim s as string

    s = "Here the text**Here the text**Here the text**Here the text**Here the text**Here the text**Here the text**Here the text** Here the text of the text, the text of the text here, the text of the text, the text of the text of the text, the text of the text of the text, the text of the text of the text, the text of the text of the text, the text of the text of the text, the text of the"

    call splittxt(s, 20, "My files")

    end sub

    sub splittxt(s as string,nlength as long,strfilename as string)

    end sub

  3. Anonymous users2024-02-05

    A certain size split

    With len....

    Defined within a loop.

    If the len is the same length, cut it and save one serving.

    Then look at it, and there is still content, just cut. There is no end

  4. Anonymous users2024-02-04

    Specifically, I can help you debug. But programmers can't be lazy.ใ€‚ใ€‚

  5. Anonymous users2024-02-03

    Why hasn't this problem been solved yet?

    I've got one for you, see for yourself!

Related questions
7 answers2024-03-28

You can consult the tenderer or ** agency before the bid opening by raising objections, and ask it to give an explanation or clarification. >>>More

11 answers2024-03-28

2021-01-05 **** Architect of Guangzhou Municipal Group Guangzhou Municipal Group Co., Ltd. >>>More

6 answers2024-03-28

Of course, this is not the same, these are files under different usernames, in fact, they are two different files, but the two file names are the same.

8 answers2024-03-28

Follow the path of the prompt to find the system file that automatically runs this file.,Put that batch file.,File name: This file is a hidden file.,Right-click to open and select.,Save it after opening it with a notepad.,This prompt won't come out in the future.,But this file is no problem.,It's a windows help file.ใ€‚ >>>More

17 answers2024-03-28

How could it not be that you use Diku csv1ยท633823266twinssp1 revision I will use this to have it. >>>More