projects
/
rodin
/
chimara.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
All of the fileref functions are now implemented:
[rodin/chimara.git]
/
src
/
model.c
diff --git
a/src/model.c
b/src/model.c
index 10bafb7b0cb0dec37b732a9652a0bab4b0124a89..2de9f9bf7aab40bf93275eae3502bce98ec9ff34 100644
(file)
--- a/
src/model.c
+++ b/
src/model.c
@@
-22,6
+22,13
@@
void glk_main(void)
glk_put_string("Philip en Marijn zijn vet goed.\n");
glk_put_string(buffer);
glk_put_string("Philip en Marijn zijn vet goed.\n");
glk_put_string(buffer);
+
+ frefid_t f = glk_fileref_create_by_prompt(fileusage_TextMode, filemode_Write, 0);
+ if( glk_fileref_does_file_exist(f) )
+ glk_put_string("\n\nFile exists!\n");
+ else
+ glk_put_string("\n\nFile does not exist!\n");
+ glk_fileref_destroy(f);
/* Bye bye */
glk_exit();
/* Bye bye */
glk_exit();