I am attempting to follow the example at:
to store user settings between sketch invocations. I am using the Eclipse IDE to develop it.
In this code snippet:
/** default starting directory where browsing for an output file to write to will start */ public File fStartingDataFilePath = new File( "C:\\Hotfix\\*.csv" ); /** ini file section for files */ public String sIniSectFile = "Files"; /** ini file key for default ouput data file path */ public String iIniKeyDataFilePath = "DataFilePath"; ... System.PrivateProfileString( sIniFile, sIniSectFile, iIniKeyDataFilePath) = fStartingDataFilePath.getAbsolutePath();
I get two errors on the last line above:
Multiple markers at this line - The method PrivateProfileString(String, String, String) is undefined for the type System - The left-hand side of an assignment must be a variable
The second error is easy for me to understand because I have never before seen a function, or method, call set equal to something. Yet that is what that example does.
The first error means my version of the System class does not have the PrivateProfileString method. What do I need to import to have this?
What is the right way to do this?