system.Io function

Discussion in 'ASP .Net' started by rahim, Dec 18, 2003.

  1. rahim

    rahim Guest

    hi, i want to know whether a file exists are not in a
    particular directory.

    how to write a function for it in asp.net using vb
     
    rahim, Dec 18, 2003
    #1
    1. Advertisements

  2. rahim

    SSW Guest

    File.Exists(path)

    HTH

    Thanks,

    sswalia
    MCAD, MCSD, OCA

    "rahim" <> wrote in message
    news:059d01c3c523$20c4c700$...
    > hi, i want to know whether a file exists are not in a
    > particular directory.
    >
    > how to write a function for it in asp.net using vb
    >
    >
     
    SSW, Dec 18, 2003
    #2
    1. Advertisements

  3. rahim

    Jerry Boone Guest

    If System.IO.File.Exists("C:\somefile.txt") then
    'it exists
    End If

    --
    Jerry Boone
    Analytical Technologies, Inc.
    http://www.antech.biz



    "rahim" <> wrote in message
    news:059d01c3c523$20c4c700$...
    > hi, i want to know whether a file exists are not in a
    > particular directory.
    >
    > how to write a function for it in asp.net using vb
    >
    >
     
    Jerry Boone, Dec 18, 2003
    #3
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. James Vanns
    Replies:
    7
    Views:
    7,652
    Evan Carew
    Jan 21, 2004
  2. komal
    Replies:
    6
    Views:
    1,706
    msalters
    Jan 25, 2005
  3. Replies:
    2
    Views:
    1,128
    Bengt Richter
    Aug 1, 2005
  4. Giannis Papadopoulos

    Function pointer to void function and int function

    Giannis Papadopoulos, Sep 5, 2005, in forum: C Programming
    Replies:
    5
    Views:
    1,507
    Barry Schwarz
    Sep 5, 2005
  5. weafon
    Replies:
    1
    Views:
    528
    Diez B. Roggisch
    Jul 14, 2009
  6. Alf P. Steinbach
    Replies:
    10
    Views:
    3,994
    Alf P. Steinbach
    Jul 27, 2011
  7. Richard A. DeVenezia
    Replies:
    4
    Views:
    337
    Lasse Reichstein Nielsen
    Sep 5, 2003
  8. Bob
    Replies:
    5
    Views:
    460
Loading...