G
Guest
I have researched a lot trying to get this. So as a last resource I will
have to ask here.
What would be the equivalent to the following javascript excerpt:
TheDataManager MyDMgr = new TheDataManager();
File MyDataFile = new File(strDataPath);
// Create a new file if and only if it doesn't already exist
boolean mNoFileExists = MyDataFile.createNewFile();
//new file was created
if ( mNoFileExists )
{
// Write out the data to disk using serialization
FileOutputStream fos = new FileOutputStream(MyDataFile);
ObjectOutputStream oos = new ObjectOutputStream(fos);
oos.writeObject(MyDMgr);
oos.close();
}
have to ask here.
What would be the equivalent to the following javascript excerpt:
TheDataManager MyDMgr = new TheDataManager();
File MyDataFile = new File(strDataPath);
// Create a new file if and only if it doesn't already exist
boolean mNoFileExists = MyDataFile.createNewFile();
//new file was created
if ( mNoFileExists )
{
// Write out the data to disk using serialization
FileOutputStream fos = new FileOutputStream(MyDataFile);
ObjectOutputStream oos = new ObjectOutputStream(fos);
oos.writeObject(MyDMgr);
oos.close();
}