file I/O in .NET compact framework

  • Thread starter Thread starter cagdas1986
  • Start date Start date
C

cagdas1986

hi
I'm quite new in visual basic, and now i' m working on a visual basic
code which will work on a pocket pc.
in my program I need to create a file and hold some information which
will be storaged in pocket device after my program executes. to make
this I tried to create a file using file functions but I get an error
message like "FileOpen 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." I
searches on the Internet and I found this information
http://msdn2.microsoft.com/EN-US/library/ms180823(VS.80).aspx
Does anybody have an idea about how to create, read, write files in
this situation?
 
Look at the Stream based classes in the System.IO namespace (TextReader,
StreamReader, etc). This is what you should be using on the desktop too,
not the legacy VB-6 stuff.


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Managed Code in an Embedded World
www.OpenNETCF.com
 
Back
Top