truncate file to n bytes

12 May
2011
12 May
'11
5:41 a.m.
Hi, I was wondering is there is any way to truncate the file-size to n bytes, while deleting from the end of the file? Does boost::filesystem support something like this? Thank you, Andrej

12 May
12 May
11:21 a.m.
I was wondering is there is any way to truncate the file-size to n bytes, while deleting from the end of the file? Does boost::filesystem support something like this?
Take a look at resize_file. http://www.boost.org/doc/libs/1_46_1/libs/filesystem/v3/doc/reference.html#r... ~Dan
5092
Age (days ago)
5092
Last active (days ago)
1 comments
2 participants
participants (2)
-
Andrej van der Zee
-
Casimiro, Daniel C CIV NUWC NWPT