Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
5
Task/Truncate-a-file/Haskell/truncate-a-file.hs
Normal file
5
Task/Truncate-a-file/Haskell/truncate-a-file.hs
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
setFileSize :: FilePath -> FileOffset -> IO ()
|
||||
-- Truncates the file down to the specified length.
|
||||
-- If the file was larger than the given length
|
||||
-- before this operation was performed the extra is lost.
|
||||
-- Note: calls truncate.
|
||||
Loading…
Add table
Add a link
Reference in a new issue