hPDB-1.2.0.9: 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 #

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

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

Write file contents as strict ByteString.