Uploaded image for project: 'Erlang/OTP'
  1. Erlang/OTP
  2. ERL-315

Function file:read_file/2 is missing

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Help Wanted
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 19.1
    • Fix Version/s: None
    • Component/s: kernel
    • Labels:
      None

      Description

      While file:write_file/3 exists to allow usage of [raw] in the options, file:read_file/2 doesn't exist as a developer would expect. To bypass this problem requires a developer to use prim_file:read_file/1 (undocumented) directly if they want raw behavior, making the situation more problematic than it needs to be. Could we please add a file:read_file/2 function with the 2nd parameter as additional options to pass, to mirror the file:write_file/3 functionality?

        Attachments

          Activity

            People

            Assignee:
            otp_team_vm Team VM
            Reporter:
            okeuday Michael Truog
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: