Logo

Programming-Idioms

History of Idiom 199 > diff from v2 to v3

Edit summary for version 3 by steenslag:
New Ruby implementation by user [steenslag]

Version 2

2019-09-29, 11:47:00

Version 3

2019-10-05, 22:42:52

Idiom #199 Truncate a file at the current file position

Truncate a file F at the give file position.

Idiom #199 Truncate a file at the current file position

Truncate a file F at the give file position.

Code
F.truncate(F.pos)