Results 1 to 2 of 2
  1. #1
    Raghav kv is offline Member
    Join Date
    Aug 2007
    Posts
    1
    Rep Power
    0

    Default Problem in opening a file

    hi all am new to java.

    when am trying to open the file with the following statement

    FileInputStream fin = new FileInputStream("E:/cleanup.txt");

    it is throwing FileNotFoundException.

    but in E drive am having the file cleanup.txt am using Windows 2000.
    any body have the solution for this???
    thanks in advance
    Raghav KV

  2. #2
    henry_78 is offline Member
    Join Date
    Aug 2007
    Posts
    47
    Rep Power
    0

    Default

    Hi,
    Try this
    try {
    FileInputStream fin = new FileInputStream(new File("E:\\cleanup.txt"));
    }
    catch(IOException e) {
    }

Similar Threads

  1. Urgent Opening in C++/Java with SIP/VoIP
    By Satish.kumar in forum Jobs Offered
    Replies: 3
    Last Post: 03-30-2008, 09:24 AM
  2. Opening a workspace twice
    By javaplus in forum Eclipse
    Replies: 0
    Last Post: 01-08-2008, 09:56 AM
  3. Opening multiple Eclipse
    By eva in forum Eclipse
    Replies: 1
    Last Post: 01-02-2008, 09:53 PM
  4. Opening URLConnection
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-24-2007, 07:37 PM
  5. job opening for java architect
    By athira in forum Jobs Offered
    Replies: 0
    Last Post: 07-26-2007, 12:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •