Results 1 to 2 of 2

Thread: File System Objects

  1. #1

    Thread Starter
    Banned Wafflehose's Avatar
    Join Date
    Apr 2001
    Location
    Quantico, VA
    Posts
    34

    File System Objects

    Here's the problem...my program searches for certain zip files. Instead of putting the names of the zip files in a list box, I need it to open a text file of the same name and pull certain information out of it and place that in the list box instead.

  2. #2
    Lively Member
    Join Date
    Jan 1999
    Location
    Lincolnshire, UK
    Posts
    111
    OK, presumably you have a string someplace with the ZIP files name in it. This code below may help

    Dim FileID as long

    fileid=freefile
    open "c:\zipfiles\" & filename & ".txt" for output as fileid
    print #fileid, {The information you want to enter}
    close #fileid

    Hope this helps

    Chri

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