C#: What are some things i need to know about opening and saving files (eg. validation)
<p>i am using the <a href="http://msdn.microsoft.com/en-us/library/microsoft.win32.openfiledialog_members.aspx" rel="nofollow">common file dialog</a>. i think there will be many things i need to know and validate eg. file type, file exists, not enough memory etc. </p>

<p>for file type, can i limit file types that can be opened using open file dialog? filter seems to still allow the user to type in a file with a different filetype. must i validate in code?</p>

<p>can i say that just by setting <code>CheckFileExists = True</code>, i should not need to check again in code the file exists? </p>

<p>is there a need to validate if there is a <code>OutOfMemoryException</code>? i am thinking, if all i should be opening is small files, i can get away with not handling that? not a good practice i guess?</p>

<p>are there any others i missed out?</p>
