How to set the filesize

T

Thomas Jakob

Maybe the best way is to copy the whole file into Memory, so operations
are performed much faster. For this you can use std::vector and for
resizing std::vector::reserve() - After all you just have to copy the
Vector to an filestream object.
 
N

nurcpp

Hi everyone
i have a problem with file manipulating
i want to make a file for random access use.
but cant set the file size early in the program

can anyone help me?
 

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

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top