Set FileSize
- From: "AMDRIT" <amdrit@xxxxxxxxxxx>
- Date: Fri, 16 Sep 2005 16:58:40 -0500
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
.
- Follow-Ups:
- Re: Set FileSize
- From: Mattias Sjögren
- Re: Set FileSize
- Prev by Date: resource string into a DLL
- Next by Date: Re: resource string into a DLL
- Previous by thread: resource string into a DLL
- Next by thread: Re: Set FileSize
- Index(es):
Relevant Pages
|
Loading