Re: Set FileSize



Doesn't that just get/set the size of the stream?


"Mattias Sjögren" <mattias.dont.want.spam@xxxxxxxx> wrote in message
news:%23HtIfswuFHA.1560@xxxxxxxxxxxxxxxxxxxxxxx
>
>>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.


.



Relevant Pages

  • Re: C# Vs VB.NET
    ... > With s As Stream = ... ... Mattias ... Please reply only to the newsgroup. ... Prev by Date: ...
    (microsoft.public.dotnet.framework.clr)
  • Re: Problem with reading byte[] from Stream
    ... You have to "rewind" the stream before reading from it, ... Mattias ... Please reply only to the newsgroup. ... Prev by Date: ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: ObjectTextToBinary
    ... > window" exception occured at ReadComponentline. ... If you want to load a component with this requirement from a stream it ... Then create an *empty* instance of the form class, ... If you need a way to clone individual components search the newsgroup archives ...
    (borland.public.delphi.language.objectpascal)
  • Re: Autoreconnection
    ... You can put a 2nd link to the stream as rollover in the ASX. ... windowsmedia.server newsgroup should better be able to answer the methods of ... "graf" wrote in message ...
    (microsoft.public.windowsmedia.player)
  • Re: Sreaming appn development for WinCE 5.0 PPC
    ... that plays video from stream. ... stream can be read from local video file. ... remove the underscores from my email address (and please indicate which newsgroup and message). ...
    (microsoft.public.pocketpc)