Results 1 to 3 of 3
  1. #1
    sheckoo is offline Member
    Join Date
    Oct 2008
    Location
    Egypt
    Posts
    26
    Rep Power
    0

    Exclamation how can i give a file path to java stream ?

    in=new FileInputStream("xanadu.txt");

    where should i write the file path ????????

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,416
    Rep Power
    25

    Default

    where should i write the file path
    Can you explain this?
    Where is "where"? On a piece of paper, in a disk file or ???

    "xanadu.txt" is the path to the file to be read. It will be in the current directory.

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by sheckoo View Post
    in=new FileInputStream("xanadu.txt");

    where should i write the file path ????????
    Please ask your question more clearly as well as more specifically.

Similar Threads

  1. file path
    By Arsench in forum New To Java
    Replies: 7
    Last Post: 10-30-2008, 05:39 AM
  2. Load class file which resides in local path c:\
    By praveen.kb in forum Advanced Java
    Replies: 2
    Last Post: 08-12-2008, 01:55 PM
  3. Reading a file into java and give it out
    By little_polarbear in forum New To Java
    Replies: 7
    Last Post: 06-05-2008, 10:32 AM
  4. Regular expression for file path
    By ravian in forum New To Java
    Replies: 3
    Last Post: 01-25-2008, 08:24 PM
  5. Replies: 2
    Last Post: 08-07-2007, 03:50 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
  •