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

2009/7/31 Yashasvi A.C. <yashasviac@xxxxxxxxx>
>
> 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?

The code looks like:

BFile file;
if (file.SetTo(path.Path(), B_WRITE_ONLY | B_CREATE_FILE) == B_OK) {
      msg.Flatten(&file);
}

Bye,
Jérôme

Other related posts: