hPDB-1.1.2: Protein Databank file format library

Safe HaskellNone

Bio.PDB.IO.OpenAnyFile

Description

Opening and reading a either normal or gzipped file in an efficient way - either using strict ByteString or mmap

Synopsis

Documentation

readFile :: FilePath -> IO ByteStringSource

Read file contents as strict ByteString. Uses mmap if possible. May decompress file contents, if needed.

writeFile :: FilePath -> (Handle -> IO a) -> IO ()Source

Write file contents as strict ByteString.