SHARE
TWEET

Untitled

a guest Jun 25th, 2019 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. file = File.open("ditto.txt")
  2. file = file.read
  3.      
  4. tequila@tequila-pc:~/code$ crystal fileopen.cr
  5. Error in fileopen.cr:2: wrong number of arguments for 'File#read' (given 0, expected 1)
  6. Overloads are:
  7.  - IO::Buffered#read(slice : Bytes)
  8.  - IO#read(slice : Bytes)
  9.  
  10. file = file.read
  11.             ^~~~
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top