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. Advertising

  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. Advertising

  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. Advertising

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,002
    Evan Carew
    Jan 21, 2004
  2. komal
    Replies:
    6
    Views:
    1,397
    msalters
    Jan 25, 2005
  3. Replies:
    2
    Views:
    882
    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,209
    Barry Schwarz
    Sep 5, 2005
  5. weafon
    Replies:
    1
    Views:
    281
    Diez B. Roggisch
    Jul 14, 2009
Loading...

Share This Page