'<functionname>' is not declared (Smart Device/Visual Basic Compiler Error)
<functionname> is not declared. File I/O functionality is normally available in the Microsoft.VisualBasic namespace, but the targeted version of the .NET Compact Framework does not support it.
Error ID: BC30766
To correct this error
Perform file operations with functions defined in the System.IO namespace.