Re: Set FileSize




>I am looking to set the size an existing file. I have a file that I am
>storing data in, in a binary format. Upon deletion of data, I reorder the
>data to the top of the file. Now that I have all of this free space, how do
>I resize the file?

FileStream.SetLength



Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
.