[Gambas-user] Bug / changed behaviour of Input

Jussi Lahtinen jussi.lahtinen at ...626...
Wed Mar 14 18:14:31 CET 2012


> Read reads data in binary format. Input reads data in text format.
>

I know what you mean, I just don't know usage for it.



> Currently I find no way in Gambas to do the C equivalent of scanf("%s",
> str);
>

Well... I don't see much usage for scanf() either. You still need to
validate the input.
If you do scanf for example hex, you can still give input which is not in
hex format and scanf will happily accept it (and do weird things with it).

So, you can as well read it as raw binary and handle it as needed.

But maybe this is just due my limited knowledge.

Jussi



More information about the User mailing list