[haiku-development] Re: Using the Flatten() function
- From: PulkoMandy <pulkomandy@xxxxxxxxx>
- To: haiku-development@xxxxxxxxxxxxx
- Date: Wed, 29 Jul 2009 15:58:14 +0200
2009/7/29 Stephan Assmus <superstippi@xxxxxx>:
> Hi,
>
> On 2009-07-29 at 15:36:08 [+0200], Yashasvi A.C. <yashasviac@xxxxxxxxx>
> wrote:
>> I have written something like:
>> ****
>> file = BFile("..\", "..\MessageStore\", B_READ_WRITE);
>> ****
>>
>> I am passing the parent directory as the directory parameter, the
>> MessageFolder as the path and the open mode status.
I think the "parent" part is when you want to use a BDirectory. You
don't need that if your whole path is a string. So just use
BFile("../MessageStore", B_READ_WRITE). Also note our path separators
are /, not \, and if you want to use an \ in a string you have to
write \\ because \ is an escaping character, as in \n (newline) and \t
(tabulation).
- References:
- [haiku-development] Using the Flatten() function
- From: Yashasvi A.C.
- [haiku-development] Re: Using the Flatten() function
- From: Stephan Assmus
- [haiku-development] Using the Flatten() function
Other related posts:
- » [haiku-development] Using the Flatten() function - Yashasvi A.C.
- » [haiku-development] Re: Using the Flatten() function - Stephan Assmus
- » [haiku-development] Re: Using the Flatten() function - PulkoMandy
- » [haiku-development] Re: Using the Flatten() function - Jonas Sundström
- » [haiku-development] Re: Using the Flatten() function - Axel Dörfler
- » [haiku-development] Re: Using the Flatten() function - Yashasvi A.C.
- » [haiku-development] Re: Using the Flatten() function - Rene Gollent
- » [haiku-development] Re: Using the Flatten() function - Jérôme Duval
- » [haiku-development] Re: Using the Flatten() function - Stephan Assmus
- » [haiku-development] Re: Using the Flatten() function - Yashasvi A.C.
- » [haiku-development] Re: Using the Flatten() function - pete . goodeve