-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File Output #50
Comments
Please post some sample code. Thanks. |
//This doesn't work (new file) //Nor does this work (pre-existent file) //This works fine though |
This bug is being flagged with the highest priority. First to be investigated... |
Issue appears to be in CFile.cpp, while the data is being put into the memory i.e. "How do you do?" it is never actually wrote out before the file is closed. Should be easy to resolve. |
Please clarify the following in the example below:
The result should be "Hello space!". // Step 1:
openFileOutput("ATextDocument.txt", "Misc");
filePrint("ATextDocument.txt", "Hello world!") ;
closeFile("ATextDocument.txt");
// Step 2:
openFileOutput("ATextDocument.txt", "Misc");
filePrint("ATextDocument.txt", "Hello space!");
closeFile("ATextDocument.txt");
// Step 3:
openFileInput("ATextDocument.txt", "Misc");
debugger(fileInput("ATextDocument.txt"));
closeFile("ATextDocument.txt"); |
Presuming that is directed at me, that is correct. That is how the code should behave. |
I ran some more tests against the fix and file I/O from my limited results it is working, I just forgot to ensure files are opened for writing as well as reading when open is called on them. Closed. |
Ok. I finally got around to actually testing this, and the "Step 2" above does not actually overwrite the file. Reading and writing seem to work fine, but overwriting does not work. |
Minor issue, I'll correct it over the coming days. |
File Output seems to be non-existent in 3.2.1. I can't create a file with openFileOutPut() or edit a file with openFileOutPut(). With the same code I can manipulate files in 3.1.
The text was updated successfully, but these errors were encountered: