read from an open text file under WinCE.Net 4.2?

G

Guest

is there a reason that i cannot open a text file in Read-only mode when the
file is already in use by another application? is this not a very basic
ooperation of any o/s??? i get an error when attempting to open a
StreamReader( or TextReader, or BinaryReader ) on a text file which i have
opened in pocket word. any insight on how i might be able to overcome this
would be appreciated. yea, it worked well under windows ce 3 and earlier.
now i cant get it under the winCE.Net environment. coding is done using
VB.Net. anybody????
 
C

Chris Tacke, eMVP

Anything that opens a file states at that point what the allowed sharing
will be from that point on. If the other application doesn't allow read
sharing, then you can't open it for reading.

--
Chris Tacke
Co-founder
OpenNETCF.org
Has OpenNETCF helped you? Consider donating to support us!
http://www.opennetcf.org/donate
 
A

Alex Feinman [MVP]

Right. E.g. desktop Word opens files in a way that sharing is completely
denied too.
 

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