Access to the path is denied
So i want to create a login and register form. I did, the problem comes when i try to press the Register button. The register button is meant to run this code on click :
System.IO.File.WriteAllText(UsernamePath, UsernameField.text);
System.IO.File.WriteAllText(EmailPath, EmailField.text);
The thing is that it gives me an error when Unity starts to read these lines, here is the error :
UnauthorizedAccessException: Access to the path 'path goes here' is denied
I have searched all around the Internet, can't find anything that helps out. Found someone that said that you must give it permission or something, but i don't have a clue what to do. Please somebody explain why it gives me that error ? thanks in advance :D
Your answer
Follow this Question
Related Questions
can't seem to open binary file after game is built (inside asset folder) 2 Answers
"Creating unique file" error 4 Answers
Not writing to file correctly 1 Answer
Unable to Copy files from one directory to another. 1 Answer
UnauthorizedAccessException: Access to the path 'path to file' is denied. 0 Answers