view doc/html/api/module/Irccd.File/index.md @ 263:48676ca7071c

Docs: use less hierarchy for less indexes
author David Demelier <markand@malikania.fr>
date Thu, 15 Sep 2016 13:16:05 +0200
parents 904ee87bc808
children
line wrap: on
line source

---
module: Irccd.File
js: true
summary: "File opening and writing."
---

## Usage

This class and functions are available for opening and writing files on the disk.

For convenience, some functions are available as free-functions and some as object methods.

## Remarks

<div class="alert alert-warning" role="alert">
**Warning**: the stat function and method are optional and may not be available on your system.
</div>

## Constants

The following properties are defined:

  - **SeekCur**: (int) seek from the current file position,
  - **SeekEnd**: (int) seek from end of the file,
  - **SeekSet**: (int) seek from beginning of the file.

## Functions

  - [basename](Irccd.File.basename.html)
  - [dirname](Irccd.File.dirname.html)
  - [exists](Irccd.File.exists.html)
  - [remove](Irccd.File.remove.html)
  - [stat](Irccd.File.stat.html) (Optional)

## Methods

  - [(constructor)](Irccd.File.prototype.constructor.html)
  - [basename](Irccd.File.prototype.basename.html)
  - [close](Irccd.File.prototype.close.html)
  - [dirname](Irccd.File.prototype.dirname.html)
  - [lines](Irccd.File.prototype.lines.html)
  - [read](Irccd.File.prototype.read.html)
  - [readline](Irccd.File.prototype.readline.html)
  - [remove](Irccd.File.prototype.remove.html)
  - [seek](Irccd.File.prototype.seek.html)
  - [stat](Irccd.File.prototype.stat.html) (Optional)
  - [tell](Irccd.File.prototype.tell.html)
  - [write](Irccd.File.prototype.write.html)