Hey I'm making a program that saves some files, so that it can read from them later. I made a directory in C:\Windows in which to save these files. Is it safe to just create a directory in the Windows folder like that?
Nevermind the safety issue, users don't like it when programs dump files where they don't expect. When they want to uninstall your program, they expect it to be uninstalled. They don't want it to leave a dozen files in the Windows directory that they didn't even know were there.
Put your files in the same directory as the exe. Or in UserName/AppData/Local/YourProgramName/