FileStream


Object Hierarchy:

GLib.FileStream GLib.FileStream GLib.FileStream

Description:

[ Compact ]
[ CCode ( cname = "FILE" , free_function = "fclose" ) ]
public class FileStream

Used to control a I/O stream

Example: Read chars from a stream:

public static int main (string[] args) {
// Opens "foo.txt" for reading ("r")
FileStream stream = FileStream.open ("filestream.vala", "r");
assert (stream != null);

// buffered:
char buf[100];
while (stream.gets (buf) != null) {
print ((string) buf);
}

return 0;
}

valac --pkg glib-2.0 GLib.FileStream.gets.vala


Namespace: GLib
Package: glib-2.0

Content:

Constants:

Static methods:

Methods: