Skip to content

Instantly share code, notes, and snippets.

@kuri65536
Last active November 1, 2017 23:53
Show Gist options
  • Select an option

  • Save kuri65536/7b1930570a94e9a7ffc7a6ff9657edfb to your computer and use it in GitHub Desktop.

Select an option

Save kuri65536/7b1930570a94e9a7ffc7a6ff9657edfb to your computer and use it in GitHub Desktop.
Reading a text file with Genie Language
[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
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