Talk:Truncate a file: Difference between revisions

→‎Assumes unix: new section
(truncate())
(→‎Assumes unix: new section)
Line 1:
So just to be sure, if the actual file size is smaller than the given truncated size, it's an error? It doesn't just leave the file alone? --[[User:Mwn3d|Mwn3d]] 14:09, 19 July 2011 (UTC)
:POSIX truncate() and ftruncate() extends the file if specified size is larger than original. It's convenient when you want to reserve some disk space. --[[User:Ledrug|Ledrug]] 14:25, 19 July 2011 (UTC)
 
== Assumes unix ==
 
It's pretty clear that this task assumes unix file system semantics. So, can we ignore other operating systems in this task? --[[User:Rdm|Rdm]] 14:33, 19 July 2011 (UTC)
6,962

edits