Latest Changes
Differences between version #13669 and #14304
105c105,130
< For a more advanced web API example, make sure to check out the [[/manual/dispatch|haxe.Web.Dispatch documentation]]. It will let you define an advanced web API using macros to get finegrained control of method access etc.
\ No newline at end of file
---
> For a more advanced web API example, make sure to check out the [[/manual/dispatch|haxe.Web.Dispatch documentation]]. It will let you define an advanced web API using macros to get finegrained control of method access etc.
>
> ===== Reading user input =====
>
> <i>( since haxe 2.09 )</i>
>
> <code haxe>
> /**
> * A simple exemple to demonstrate how to
> * read and write from and to the command line.
> * compile with haxe : > haxe -Main -neko main.n
> * execute with neko: > neko main.n
> */
> class Main {
> static function main() {
> // print a message on the screen
> Sys.println("What's your name?");
> // read user input
> var input = Sys.stdin().readLine();
> // print the result
> Sys.println(Std.format("Hello ${input}"));
> //exit with code 0
> Sys.exit(0);
> }
> }
> </code>
\ No newline at end of file
| Ver | Date | Entry | Lg | User | Action |
|---|---|---|---|---|---|
| #19364 | 2013-05-19 18:01:37 | manual/haxe3 | en | orwellophile | View | Diff |
| #19363 | 2013-05-19 17:58:20 | manual/haxe3 | en | orwellophile | View | Diff |
| #19362 | 2013-05-19 16:16:17 | api/haxe/timer | en | vegetablesalad | View | Diff |
| #19361 | 2013-05-19 16:14:40 | api/haxe/timer | en | vegetablesalad | View | Diff |
| #19360 | 2013-05-13 17:42:34 | doc/libraries | en | Confidant | View | Diff |
| #19359 | 2013-05-13 05:01:15 | manual/macros/advanced | en | jason | View | Diff |
| #19358 | 2013-05-12 02:55:03 | com/ide | en | MarcWeber | View | Diff |
| #19357 | 2013-05-11 05:26:13 | ref/conditionals | jp | shohei909 | View | Diff |
| #19356 | 2013-05-10 09:29:15 | manual/completion | en | jason | View | Diff |
| #19355 | 2013-05-09 00:24:39 | download/manual_install/leopard | en | JLM | View | Diff |
| #19354 | 2013-05-09 00:10:46 | download/manual_install/leopard/justinsbuildnotes | en | JLM | View | Diff |
| #19353 | 2013-05-08 18:42:04 | com/news | en | ncannasse | View | Diff |
| #19352 | 2013-05-08 18:12:08 | manual/haxe3 | en | ncannasse | View | Diff |
| #19351 | 2013-05-08 18:09:11 | manual/haxe3 | en | Simn | View | Diff |
| #19350 | 2013-05-08 18:04:19 | manual/haxe3 | en | ncannasse | View | Diff |
| #19349 | 2013-05-08 15:57:29 | doc/haxelib/haxelib2 | en | jason | View | Diff |
| #19348 | 2013-05-08 15:57:29 | doc/haxelib/haxelib2 | en | jason | Changed title from Haxelib 2 to Haxelib 3 |
| #19347 | 2013-05-08 15:21:08 | manual/haxe3/features | jp | shohei909 | View | Diff |
| #19346 | 2013-05-08 15:15:14 | manual/haxe3/features | en | shohei909 | View | Diff |
| #19345 | 2013-05-08 11:51:53 | doc/haxelib/haxelib2 | en | back2dos | View | Diff |
Previous | Next