473,386 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

reading a file in use

Is there a way to read a text file that is in use by another application ?
Apr 17 '06 #1
4 1308
If the other opener has opened this file in deny others, then you cant read
it.

--
( OHM ) - One Handed Man
AKA Terry Burns - http://TrainingOn.net

"R. Harris" <ro**********@hotmail.com> wrote in message
news:OL**************@TK2MSFTNGP05.phx.gbl...
Is there a way to read a text file that is in use by another application ?

Apr 17 '06 #2
Then would it be possible to have your program copy the file in use and
rename it for the sake of reading it?
"OHM ( One Handed Man )" <me@mine.com> wrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
If the other opener has opened this file in deny others, then you cant
read it.

--
( OHM ) - One Handed Man
AKA Terry Burns - http://TrainingOn.net

"R. Harris" <ro**********@hotmail.com> wrote in message
news:OL**************@TK2MSFTNGP05.phx.gbl...
Is there a way to read a text file that is in use by another application
?


Apr 17 '06 #3
"R. Harris" <ro**********@hotmail.com> schrieb:
Is there a way to read a text file that is in use by another application ?


See:

<URL:http://groups.google.de/group/microsoft.public.dotnet.languages.vb/msg/29afe486dab2bbe3>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Apr 17 '06 #4
yes, have you tried it?

"R. Harris" <ro**********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
Then would it be possible to have your program copy the file in use and
rename it for the sake of reading it?
"OHM ( One Handed Man )" <me@mine.com> wrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
If the other opener has opened this file in deny others, then you cant
read it.

--
( OHM ) - One Handed Man
AKA Terry Burns - http://TrainingOn.net

"R. Harris" <ro**********@hotmail.com> wrote in message
news:OL**************@TK2MSFTNGP05.phx.gbl...
Is there a way to read a text file that is in use by another application
?



Apr 17 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Xah Lee | last post by:
# -*- coding: utf-8 -*- # Python # to open a file and write to file # do f=open('xfile.txt','w') # this creates a file "object" and name it f. # the second argument of open can be
19
by: Lionel B | last post by:
Greetings, I need to read (unformatted text) from stdin up to EOF into a char buffer; of course I cannot allocate my buffer until I know how much text is available, and I do not know how much...
4
by: Oliver Knoll | last post by:
According to my ANSI book, tmpfile() creates a file with wb+ mode (that is just writing, right?). How would one reopen it for reading? I got the following (which works): FILE *tmpFile =...
6
by: Rajorshi Biswas | last post by:
Hi folks, Suppose I have a large (1 GB) text file which I want to read in reverse. The number of characters I want to read at a time is insignificant. I'm confused as to how best to do it. Upon...
7
by: John Dann | last post by:
I'm trying to read some binary data from a file created by another program. I know the binary file format but can't change or control the format. The binary data is organised such that it should...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.