Set FileSize



Hello,

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?

On a side note; where can I find some further reading on working on the same
file from two different streams? In the old days, using API's and VB 6.0,
we could lock a portion of the file. I read somewhere, long ago, that there
is another way: use a portion of the file as a locking map so that each
process could specify where it was writting to and that all the processes
would check that section prior to writting and, in some cases, reading.

I don't read C/C++ very well so all them How-To's are lost on me, I wish it
weren't so.

Framework 1.1, VB.Net 2003

Thanks in advance


.



Relevant Pages

  • Re: Soon-to-be-Negress- moms at Denvers East High School ask for four weeks of mater
    ... In the words of the immortal bard, "I would if I could, but I can't!". ... just reading a small portion of the original posting that ...
    (soc.retirement)
  • Re: Whatre you reading?
    ... What a fun read... ... Smoked a VSG while pushing through a large portion of The Color of Magic. ... Currently, not reading anything, but I've been hoping the right book would find me! ...
    (alt.smokers.cigars)
  • Re: Whatre you reading?
    ... Smoked a VSG while pushing through a large portion of The Color of Magic. ... smoked a pipe earlier reading a little of The Light Fantastic... ...
    (alt.smokers.cigars)
  • Re: Whatre you reading?
    ... Smoked a VSG while pushing through a large portion of The Color of Magic. ... smoked a pipe earlier reading a little of The Light Fantastic... ... Discworld series 3 times, really like it. ...
    (alt.smokers.cigars)
  • Re: remove elemento from array
    ... reading the help that comes with monad, i was under the impression that i could easilly remove elements from there by writting something like this ...
    (microsoft.public.windows.server.scripting)

Loading