Organizational Research By

Surprising Reserch Topic

java lang illegalargumentexception contains a path separator


java lang illegalargumentexception contains a path separator  using -'android'

I have a filename in my code as :

String NAME_OF_FILE="//sdcard//imageq.png";
FileInputStream fis =this.openFileInput(NAME_OF_FILE); // 2nd line


I get an error on 2nd line :


  05-11 16:49:06.355: ERROR/AndroidRuntime(4570): Caused by: java.lang.IllegalArgumentException: File //sdcard//imageq.png contains a path separator


I tried this format also:

String NAME_OF_FILE="/sdcard/imageq.png";

    
asked Sep 29, 2015 by abhimca2006
0 votes
27 views



Related Hot Questions



Government Jobs Opening


...