How to create a text file in a function generated by touchgfx?
Hello,
I am trying to create a text file after clicking on a button through a virtual function. Has anyone ever done that?
The goal is to save some information entered by the user in a text file and to display it in the UI and access this text file later on through another program to read what has been entered in touchgfx.
Thanks
The code written to create the file (function is called when we click on the button ZSave):
void PositionScreenView::ZSaveButtonClicked()
{
fstream test;
test.open("C:/TouchGFXProjects/UIV1/test.txt",ios::in | ios::out);
test << "Hello"<<endl;
if (test.is_open()){
touchgfx_printf("file is open");
}
test.close();
}
