truncate file

  • Thread starter Thread starter leibnizster
  • Start date Start date
L

leibnizster

Hello,

I have a 4 GB file and I want to truncate it to, say, 3.8. Cany I do
something like seek to some byte in the file and then delete all the
bytes that come after that? If yes how?

Thanks
 
if anyone cares, I used interop with the function:
SetEndOfFile()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top