Java.IO.FileInputStream Class
An input stream that reads bytes from a file.

See Also: FileInputStream Members

Syntax

[Android.Runtime.Register("java/io/FileInputStream", DoNotGenerateAcw=true)]
public class FileInputStream : InputStream

Remarks

An input stream that reads bytes from a file.

java Example

File file = ...
   InputStream in = null;
   try {
     in = new BufferedInputStream(new FileInputStream(file));
     ...
    finally {
     if (in != null) {
       in.close();
     }
   }
 }

This stream is not buffered. Most callers should wrap this stream with a Java.IO.BufferedInputStream.

Use Java.IO.FileReader to read characters, as opposed to bytes, from a file.

See Also

[Android Documentation]

Requirements

Namespace: Java.IO
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1