Last active
November 1, 2017 23:53
-
-
Save kuri65536/7b1930570a94e9a7ffc7a6ff9657edfb to your computer and use it in GitHub Desktop.
Reading a text file with Genie Language
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [indent=4] | |
| init | |
| try | |
| var fp = FileStream.open("sample.txt", "r") | |
| line: string | |
| while ((line = fp.read_line()) != null) | |
| stdout.printf(line + "\n") | |
| except | |
| return | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| src := $(shell ls *.gs) | |
| # save_c := --save-temps | |
| FLAGS_GENIE := --pkg gee-0.8 $(save_c) | |
| basic: $(src) | |
| valac $(FLAGS_GENIE) -o $@ $< | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment