Results 1 to 3 of 3

Thread: Can we use this FileSystem.FileOpen

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2005
    Location
    Canada
    Posts
    141

    Angry Can we use this FileSystem.FileOpen

    In C# we write this code system generate error
    The type or namespace name 'FileSystem' could not be found (are you missing a using directive or an assembly reference?)


    which library import

    FileSystem.FileOpen(2, "Connection.dll", OpenMode.Binary, OpenAccess.Default, OpenShare.Default, -1);

  2. #2
    Frenzied Member StrangerInBeijing's Avatar
    Join Date
    Mar 2005
    Location
    Not in Beijing
    Posts
    1,666

    Re: Can we use this FileSystem.FileOpen

    Are you sure you are not refering to System.IO.FileInfo?
    It got 3 overloaded Open methods as follows:
    Open(FileMode);
    Open(FileMode, FileAccess);
    Open(FileMode, FileAccess, FileShare);
    Install and Configure Eclipse For both Java and PHP development
    Accessible Ajax/jQuery Forms Degrade gracefully with JavaScript Disabled

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Can we use this FileSystem.FileOpen

    FileSystem is a module in the Microsoft.VisualBasic namespace. You can add a reference to the Microsoft.VisualBasic assembly to a C# project and then use the member modules as though they were classes with static members, but I suggest that you just use the System.IO namespace and its members instead, as I suggest that you do in VB.NET as well.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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