@nerikeshi wrote:
Hi.
I want to create a NEW file with ofSystemSaveDialog() in the following code. When I press the 's' key, the save dialog is displayed and input filename and press the Enter key...However, the file is not created. Is there another effective option? Or is the function NOT for create NEW file? What's wrong?
ofApp.h
ofFileDialogResult hoge;
ofApp.c
void ofApp::keyPressed(int key){ if(key == 's'){ hoge = ofSystemSaveDialog("hoge.txt", "Where to save?"); } }
Environment
Windows 10 Home
Microsoft Visual Studio Community 2015 Version 14.0.25431.01 Update 3
openFrameworks 0.9.8
Posts: 2
Participants: 2