Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- file = File.open("ditto.txt")
- file = file.read
- tequila@tequila-pc:~/code$ crystal fileopen.cr
- Error in fileopen.cr:2: wrong number of arguments for 'File#read' (given 0, expected 1)
- Overloads are:
- - IO::Buffered#read(slice : Bytes)
- - IO#read(slice : Bytes)
- file = file.read
- ^~~~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement