Mercurial > irccd
comparison doc/html/api/module/Irccd.File/method/constructor.md @ 0:1158cffe5a5e
Initial import
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 08 Feb 2016 16:43:14 +0100 |
parents | |
children | 070a1ece2af6 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:1158cffe5a5e |
---|---|
1 --- | |
2 method: constructor | |
3 summary: "Open a file specified by path with the specified mode." | |
4 synopsis: "Irccd.File(path, mode) /* constructor */" | |
5 arguments: | |
6 - "path, the path to the file," | |
7 - "mode, the mode, can be one of [abrwt]" | |
8 throws: "Any exception on error" | |
9 --- | |
10 | |
11 The mode string understands the following characters: | |
12 | |
13 - **a**: append to the end of file, | |
14 - **b**: open in binary mode, | |
15 - **r**: open for reading, | |
16 - **w**: open for writing, | |
17 - **t**: truncate the file. |