Results 1 to 3 of 3

Thread: FSO vs I/O statements

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 1999
    Posts
    80

    Question

    Greetings,

    I am doing some modifications to a program that used the "write #" to generate comma delimited text files.

    Currently, I am considering re-writing the codes to use the FileSystemObject object. I read somewhere on MSDN that the File I/O statements "will eventually be phased out in favor of the FSO object model". What are the pros and cons of using the FSO?

    Also, since the Read method will read a specified number of characters from a TextStream file, is there another way to read comma delimited files without resorting to parsing the result of the Read method?

    Thanks in advance.

  2. #2
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926
    I wouldn't bother to alter your code. In the next version of vb (vb7 or vb.net) all file operations will be done by a new object (System.IO) so your code would need a conversion anyway.
    A disadvantage of using the FSO is that any computer with this dll installed on it (scrrun.dll) is more vulnerable to virusses.

  3. #3
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    Using the FSO you will need to distribite +1 dll with your app.
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

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