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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

File Reader error in J-Link

vlipovcan
10-Marble

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
Announcements


Top Tags