puts STDIN.read
Is there any way to do that in crystal?
Similar to https://stackoverflow.com/questions/45215658/read-whole-lines-from-stdin-without-pressing-enter-with-crystal-lang but I just want the whole thing not one line at a time.
Thanks.
Try STDIN.get_to_end or STDIN.raw
--
You received this message because you are subscribed to a topic in the Google Groups "Crystal" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/crystal-lang/O4DExFHJc5E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to crystal-lang...@googlegroups.com.
To post to this group, send email to crysta...@googlegroups.com.
Visit this group at https://groups.google.com/group/crystal-lang.
To view this discussion on the web visit https://groups.google.com/d/msgid/crystal-lang/93ca3cfd-1c74-41c1-a36a-844f310d18ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.