From 5815bb6bb41d0ec6ab41afe4c95b7d7ab0813344 Mon Sep 17 00:00:00 2001 From: Marcel Ruegenberg Date: Sun, 15 May 2016 14:16:33 +0200 Subject: [PATCH] Update ofSystemUtils_functions.markdown --- .../utils/ofSystemUtils_functions.markdown | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/documentation/utils/ofSystemUtils_functions.markdown b/documentation/utils/ofSystemUtils_functions.markdown index f8585f7eb..0c1d9cf6f 100644 --- a/documentation/utils/ofSystemUtils_functions.markdown +++ b/documentation/utils/ofSystemUtils_functions.markdown @@ -77,7 +77,15 @@ _inlined_description: _ _description: _ +~~~~{.cpp} +ofFileDialogResult result = ofSystemLoadDialog("Load file"); +if(result.bSuccess) { + string path = result.getPath(); + // load your file at `path` +} +~~~~ +See also: [ofFileDialogResult](ofFileDialogResult). @@ -112,8 +120,15 @@ _inlined_description: _ _description: _ +~~~~{.cpp} +ofFileDialogResult result = ofSystemSaveDialog("default.jpg", "Save"); +if(result.bSuccess) { + string path = result.getPath(); + // save your file to `path` +} +~~~~ - +See also: [ofFileDialogResult](ofFileDialogResult).