I am trying to use ini4j. But I am not able to read the file. The code:
ini = new Wini(new InputStreamReader(new FileInputStream("./setup.ini"), "UTF-8"));
But it is giving me the errors:
Unhandled exception type IOException
Unhandled exception type InvalidFileFormatException
Unhandled exception type UnsupportedEncodingException
Unhandled exception type FileNotFoundException
I already tried "C:\setup.ini" and "setup.ini" and "C:/setup.ini" I also tried:
ini = new Wini(new InputStreamReader(new FileInputStream(New File("./setup.ini")), "UTF-8"));
The Variable ini is properly declared:
Wini ini;
Any Ideas?