Module
Node.FS.Sync
- Package
- purescript-node-fs
- Repository
- purescript-node/purescript-node-fs
#readTextFile Source
readTextFile :: Encoding -> FilePath -> Effect StringReads the entire contents of a text file with the specified encoding.
#appendFile Source
appendFile :: FilePath -> Buffer -> Effect UnitAppends the contents of a buffer to a file.
#fdOpen Source
fdOpen :: FilePath -> FileFlags -> Maybe FileMode -> Effect FileDescriptorOpen a file synchronously. See the Node documentation for details.
#fdRead Source
fdRead :: FileDescriptor -> Buffer -> BufferOffset -> BufferLength -> Maybe FilePosition -> Effect ByteCountRead from a file synchronously. See the Node documentation for details.
#fdNext Source
fdNext :: FileDescriptor -> Buffer -> Effect ByteCountConvenience function to fill the whole buffer from the current file position.
#fdWrite Source
fdWrite :: FileDescriptor -> Buffer -> BufferOffset -> BufferLength -> Maybe FilePosition -> Effect ByteCountWrite to a file synchronously. See the Node documentation for details.
#fdAppend Source
fdAppend :: FileDescriptor -> Buffer -> Effect ByteCountConvenience function to append the whole buffer to the current file position.
#fdFlush Source
fdFlush :: FileDescriptor -> Effect UnitFlush a file synchronously. See the Node documentation for details.
#fdClose Source
fdClose :: FileDescriptor -> Effect UnitClose a file synchronously. See the Node documentation for details.