[haiku-development] Re: Using the Flatten() function

  • From: Rene Gollent <anevilyak@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Fri, 31 Jul 2009 09:35:07 -0500

On Fri, Jul 31, 2009 at 9:28 AM, Yashasvi A.C.<yashasviac@xxxxxxxxx> wrote:
> So, you mean I open a file in a read-write format and then use the flatten
> function. How does the flatten() know which file it needs to stream the data
> to?

It's implied by the path you give it when opening the file. I.e. if
you give do BFile file ("/boot/home/somefile", B_READ_WRITE |
B_CREATE_FILE);, then /boot/home/somefile is where the flattened data
will end up.

Regards,

Rene

Other related posts: