J
Jan Danielsson
Hello all,
Is there any way to create a file with a specified size?
Is there any way to create a file with a specified size?
Jan said:Is there any way to create a file with a specified size?
Erik said:What do you want to put in the file? Once you've answered that
question, the solution should present itself.
Is there any way to create a file with a specified size?
Check blocks from an FEC-encoder (Freenet, more specifically).
The problem is that the design I'm working on won't guarantee what
order the blocks will be returned in -- so I need to be able to seek to
block n's location and write the ckeck block.
Next block could be m, where m < n. So, they aren't continous.
Grant said:Exactly. And precisely how did that fail?
If you do a seek before each write, it doesn't matter.
Jan said:Is there any way to create a file with a specified size?
It didn't -- but that's on my platform;
I have no idea how it'll work on another platform; which is
why I wanted to be able to first create the file of the
specified size, and then start writing to it.
According to Python, posix, Linux, Windows, ANSI-C?
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.