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

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! 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