cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

File Reader error in J-Link

vlipovcan
7-Bedrock

File Reader error in J-Link

Hi, I have problem with FileReader function. I can read info of file, but I cant read content.

 

    String fileName = "d:\\ProUser\\text.txt";

    File file = new File(fileName); //works good

    if(file.canRead()== true){

      DisplayMessage.infoMessage ( "Nacten cfg soubor: "+file.getParentFile()+"\\"+file.getName()+", absolutni cesta: "+file.getAbsolutePath()); //works good

     FileReader fr = new FileReader(file); //error

      fr.close();      //error

    }else{

            DisplayMessage.errorMessage ( "Nelze nacist soubor: "+fileName);

    }

 

Any idea?

Thanks

 

ScreenShot139.png

 

in Creo2:

ScreenShot140.png

0 REPLIES 0
Top Tags