Code example for FileInputStream

Methods: closeread

        int count = pFileOut.getBytes().length;
        byte[] buffer = new byte[count];
        try { 
            FileInputStream fis = new FileInputStream(pFile);
  , 0, count);
        } catch (FileNotFoundException e) {
            failStr("Failed when verifing output opening file "+e.getMessage());
        } catch (IOException e) {
            failStr("Failed when verifying output, reading from written file "+e);
        String str = new String(buffer);
        assertEquals(str, pFileOut);
     * This test case verifies that output written to a file 
     * using Context.openFileOutput has executed successfully. 
Connect your IDE to all the code out there  Get Codota for Java