The disk is full IOException. This example creates a new file, if the file does not already exist. If an application needs to create a file, that application needs Create access for the folder.
If the file already exists, the application needs only Write access, a lesser privilege. Where possible, it is more secure to create the file during deployment, and only grant Read access to a single file, rather than Create access for a folder.
Skip to main content. Sign in Email. Forgot your password? Search within: Articles Quick Answers Messages. Tagged as C. Stats Clay Shannon Rate me:. Please Sign up or sign in to vote. Copy Code. Clay Shannon. WriteElementString "Address2", Customer. Address2 ; writer.
WriteElementString "Town", Customer. Town ; writer. WriteElementString "County", Customer. County ; writer. Postcode ; writer.
TelephoneHome ; writer. WriteStartElement "Vehicle" ; writer. WriteElementString "Make", Vehicle. Make ; writer. WriteElementString "Model", Vehicle. Model ; writer. WriteElementString "Colour", Vehicle. Colour ; writer. EngineSize ; writer. WriteElementString "Registration", Vehicle.
Registration ; writer. WriteElementString "Year", Vehicle. YearOfFirstReg ; writer. WriteEndElement ; writer. Are you just trying to save a session across uses for a single-user, GUI application? Otherwise if you're doing something that could be used by multiple concurrent users, for instance you may want to consider not storing the info in files.
Even in the single user scenario, there may be better alternatives like SQLite to store your data — Paolo Falabella. If you can expand some more on what kind of application you're writing people here will be able to suggest something suitable.
Add a comment. Active Oldest Votes.
0コメント