Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
file:open(File, [ram])
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
JD Bothma  
View profile  
 More options Nov 13 2012, 11:21 am
From: JD Bothma <jbot...@gmail.com>
Date: Tue, 13 Nov 2012 17:21:19 +0100
Local: Tues, Nov 13 2012 11:21 am
Subject: [erlang-questions] file:open(File, [ram])

The 'ram' option to file:open/2 seems to implement some functionality I
want: to treat a file in memory as if it's a file on disk to let a library
support both disk and in-memory data concisely.

It doesn't look like this option is documented, but it's probably useful to
many. It looks like it's used by at least erl_tar.

Can this become part of the documented API of the file module?

JD

_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Patrik Nyblom  
View profile  
 More options Nov 14 2012, 5:22 am
From: Patrik Nyblom <p...@erlang.org>
Date: Wed, 14 Nov 2012 11:22:45 +0100
Local: Wed, Nov 14 2012 5:22 am
Subject: Re: [erlang-questions] file:open(File, [ram])

Hi!

On 11/13/2012 05:21 PM, JD Bothma wrote:

> The 'ram' option to file:open/2 seems to implement some functionality
> I want: to treat a file in memory as if it's a file on disk to let a
> library support both disk and in-memory data concisely.

Yes, it's ancient functionality that has never been documented.
> It doesn't look like this option is documented, but it's probably
> useful to many. It looks like it's used by at least erl_tar.

> Can this become part of the documented API of the file module?

Yes, absolutely - we have no intention of removing it. It also has test
suites. Just submit a documentation patch on Erlang-patches and you have
a documented interface!

> JD

Cheers,
Patrik

_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »