Skip to content

Instantly share code, notes, and snippets.

@altitude
Created January 16, 2016 22:41
Show Gist options
  • Save altitude/6539381671ee5135864b to your computer and use it in GitHub Desktop.
Save altitude/6539381671ee5135864b to your computer and use it in GitHub Desktop.
case File.read '/tmp/foo.txt' do
{:ok, content} -> IO.puts content
{:error, error} -> IO.inspect error
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment