file I/O in .NET compact framework

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?
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top