hPDB-1.2.0.4: Protein Databank file format library

Safe HaskellNone
LanguageHaskell98

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 ByteString Source

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.