From d96af2dd3333e8870523402de97f022796c34b5c Mon Sep 17 00:00:00 2001 From: Jan Daniel Bothma Date: Wed, 14 Nov 2012 18:01:07 +0100 Subject: Basic documentation of the 'ram' mode in the 'file' module --- lib/kernel/doc/src/file.xml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/kernel/doc/src') diff --git a/lib/kernel/doc/src/file.xml b/lib/kernel/doc/src/file.xml index b2a259080d..89190d8668 100644 --- a/lib/kernel/doc/src/file.xml +++ b/lib/kernel/doc/src/file.xml @@ -610,7 +610,7 @@ Open a file -

Opens the file Filename in the mode determined +

Opens the file File in the mode determined by Modes, which may contain one or more of the following items:

@@ -767,6 +767,10 @@

The Encoding can be changed for a file "on the fly" by using the io:setopts/2 function, why a file can be analyzed in latin1 encoding for i.e. a BOM, positioned beyond the BOM and then be set for the right encoding before further reading.See the unicode(3) module for functions identifying BOM's.

This option is not allowed on raw files.

+ ram + +

File must be iodata(). Returns an fd() which lets the file module operate on the data in-memory as if it is a file.

+

Returns:

-- cgit v1.2.3