Following table summarizes different
functions provided by Haskell to work with files.
Function
|
Description
|
Read contents of a file
|
|
Get file data as a string
|
|
Write string to a file
|
|
Append data to file
|
|
Closing files
|
|
Perform operation on file handle
|
|
Get the size of file
|
|
Truncate the file
|
|
Get current position of handle
|
|
Change file handle position
|
|
Check whether file handle is open (or)
not
|
|
Check whether file handle is closed or
not
|
|
Check whether file handle is readable
or not
|
|
Check whether file is writable (or)
not
|
|
Check whether handle is seekable (or)
not
|
|
Check end of file
|
|
Read file line by line
|
|
Read a charcater from file
|
|
Return next character from file
|
|
Get the file data as string
|
|
Write character to a file
|
|
Write a string to a file
|
|
Write a string to a file
|
|
Write data to file
|
No comments:
Post a Comment