Module
Node.FS.Aff
- Package
- purescript-node-fs
- Repository
- purescript-node/purescript-node-fs
#readTextFile Source
readTextFile :: Encoding -> FilePath -> Aff String
Reads the entire contents of a text file with the specified encoding.
#appendFile Source
appendFile :: FilePath -> Buffer -> Aff Unit
Appends the contents of a buffer to a file.
#fdOpen Source
fdOpen :: FilePath -> FileFlags -> Maybe FileMode -> Aff FileDescriptor
Open a file asynchronously. See the Node Documentation for details.
#fdRead Source
fdRead :: FileDescriptor -> Buffer -> BufferOffset -> BufferLength -> Maybe FilePosition -> Aff ByteCount
Read from a file asynchronously. See the Node Documentation for details.
#fdNext Source
fdNext :: FileDescriptor -> Buffer -> Aff ByteCount
Convenience function to fill the whole buffer from the current file position.
#fdWrite Source
fdWrite :: FileDescriptor -> Buffer -> BufferOffset -> BufferLength -> Maybe FilePosition -> Aff ByteCount
Write to a file asynchronously. See the Node Documentation for details.
#fdAppend Source
fdAppend :: FileDescriptor -> Buffer -> Aff ByteCount
Convenience function to append the whole buffer to the current file position.
#fdClose Source
fdClose :: FileDescriptor -> Aff Unit
Close a file asynchronously. See the Node Documentation for details.