2010/5/11 Andrei Stebakov <lisper...@gmail.com>:
> I've been just going through "Computer Programming with GNU Smalltalk" book
> using Pharo 1.0 as an actual ST implementation.
> The book mentions "stdin nextLine" as a way to get an input from a user via
> the standard input.
> Is there a similar class/method in Pharo?
>
>
If you are on linux, you can do just:

stream := FileStream readOnlyFileNamed: '/dev/stdin'.
stream nextLine

Unfortunately, Squeak VM doesn't provides a default API for working
with stdin/out,
since its more a GUI-centric , not command-line centric thing.

>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project@lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>



-- 
Best regards,
Igor Stasenko AKA sig.

_______________________________________________
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to