Results 1 to 2 of 2

Thread: Textfile and Textbox

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member Matt-D's Avatar
    Join Date
    Nov 1999
    Location
    Mettmann, Germany
    Posts
    305

    Post

    I know this method to open a textfile into a textbox:
    VB Code:
    1. Filenum = FreeFile
    2.     Open "c:\File1.txt" For Input As Filenum
    3.     T1_DTBANK.Text = Input(LOF(Filenum), Filenum)
    4.     Close Filenum
    My progam loads some paths from five textfiles (each with one line, e.g. "C:\XXXXXX\XXXXXXX.TXT").

    Now my question:
    Is there a way, that there is only one textfile with all this things?
    Is it possile, that I open the textfile,
    so the textbox no. 1 has the text of the first line (of the textfile), the textbox no.2 has the text of the second line, and so on.

    How do I have to modify the code?
    I hope you understant my problem.

    Thanks for some help, Matt
    Last edited by Matt-D; Sep 18th, 2003 at 03:25 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width