Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  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. ^~~~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement