×

Discussion Board

Results 1 to 3 of 3

Thread: filesystem

  1. #1
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    101

    filesystem

    Hi,

    I have problems with working 9210's file system.
    I have wrote a java program that is work is reading a txt file that is in
    sis file beside the class file in jar file.
    but when the running reach where the txt file should be opened throws
    an exception ,because it couldn't find that.
    In source code I wrote this:

    try
    {

    Reader in =new FileReader("myfile.txt");
    in.read(buf);
    }
    catch (Exception e)
    {
    System.out.println("Error: " + e.toString());
    }
    For addressing the file what should I do that communicator can work it.
    In addition in working with emmulator I have no any problems because
    it use windows File System.My problem is in Communicator FileSystem.

    I am waiting...

    regards

  2. #2
    Registered User
    Join Date
    Sep 2004
    Posts
    3

    response ?

    hello
    did you get a solution ?
    same problem : impossible to open a TXT file
    regards
    david

  3. #3
    Registered User
    Join Date
    Sep 2004
    Posts
    29
    Are you sure you are using the correct path? When accessing "stuff" in the jar file the absolut path must be used and it always starts with "/", which isn't the case in your sample code.



    /MCrill

Posting Permissions

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