Results 1 to 2 of 2

Thread: Text in string

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2000
    Location
    Vienna, Austria
    Posts
    62

    Question

    Is it possible to read a text-file (example:"c:\nl.txt") into one string? And if yes, then how?
    Life is trip, eat it and smile.

  2. #2
    Fanatic Member
    Join Date
    Jan 1999
    Location
    UK
    Posts
    554
    Use the INPUT function

    Input(Number_of_Characters, [#]filenumber)

    ie....

    Code:
    Open "c:\myfile.txt" for input as #1
    Buffer = Input (FileLen("c:\myfile.txt"),#1)
    Close #1

    DocZaf
    {;->


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