Reading Content from File in J2ME
问题 I am trying to read the content of a file but it seems not to work. I surfed the net and found different implementations as shown(read(), read2(), readLine()) but each time a run the codes they all give a NullPointer exception. Please what can I do to rectify this problem. private String folder; static String filename; //IMPLEMENTATION 1 private void readFile(String f) { try { InputStreamReader reader = new InputStreamReader(getClass().getResourceAsStream(f)); String line = null; while ((line