File.open-exclamation-mark

You're seeing just the function open-exclamation-mark, go back to File module for more information.
Link to this function

open!(path, modes_or_function \\ [])

View Source

Specs

open!(Path.t(), [mode() | :ram]) :: io_device()
open!(Path.t(), (io_device() -> res)) :: res when res: var

Similar to open/2 but raises a File.Error exception if the file could not be opened. Returns the IO device otherwise.

See open/2 for the list of available modes.

Link to this function

open!(path, modes, function)

View Source

Specs

open!(Path.t(), [mode() | :ram], (io_device() -> res)) :: res when res: var

Similar to open/3 but raises a File.Error exception if the file could not be opened.

If it succeeds opening the file, it returns the function result on the IO device.

See open/2 for the list of available modes.