Hello everyone.
I want to know the best way to accomplish this particular situation.
I have a C++ application that has a file open for write access
constantly and it is always updating the information in the file (
maybe once a second or so ). That isnt the problem :)
I want to have a second seperate application (written in PHP or Java,
but thats irrelavent) that _only_ reads the information in the file.
So it will open it for read access only, read it in, and close it.
I know that things don't really work well when files already have open
handles on them, so i was wondering what the input was regarding this.
Im sure this has to be done somewhere as I dont think its revolutionary
:) Just escapes me as to what to do.
Thanks everyone! 1 2337
elitecodex wrote: I want to know the best way to accomplish this particular situation.
I have a C++ application that has a file open for write access constantly and it is always updating the information in the file ( maybe once a second or so ). That isnt the problem :)
OK
I want to have a second seperate application (written in PHP or Java, but thats irrelavent)
Relevant enough to make your question OT...
that _only_ reads the information in the file. So it will open it for read access only, read it in, and close it.
I know that things don't really work well when files already have open handles on them, so i was wondering what the input was regarding this.
Post to the newsgroup that deals with your OS. File access across
processes, locking, rights, exclusiveness, etc., are all features of your
OS, not of the language.
Im sure this has to be done somewhere as I dont think its revolutionary :) Just escapes me as to what to do.
That's simple: find a better place to ask your OS-specific question.
V This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Fie Fie Niles |
last post by:
I have IIS installed on XP Professional workstation machine. I have an ASP
page that open connection to an Access database, then when trying to update
the database, it gave me the error "cannot update database or object is
read-only". This is a workstation machine, not connected to any other
computer, and I login to the PC using an administrator account. I already
check the .MDB file is NOT read-only. But, I do not see the .LDB file....
|
by: Joerg Battermann |
last post by:
Hello there,
I was wondering how I can check whether I am allowed to read a certain file
or not? Some of e.g. XP's files are not readable, not even by the Administrator,
and when trying to open a file for reading, it throws an exception (e.g.:
{"The process cannot access the file \"C:\\Documents and Settings\\Joerg\\Local
Settings\\Application Data\\Lookout Software\\Lookout\\Data.Outlook\\Log
Files\\log.txt\" because it is being used by...
|
by: Graham Taylor |
last post by:
I've tried posting this in the 'microsoft.public.access' but I will post it
here also, as I think it might be the webserver which is causing my problem.
---------
I have an Access 2003 database which is in the "fpdb" folder of my
webserver. Its located there so that I can use asp to build a web-based
front-end for users to read the database -
http://www.nist.ac.th/maths/test1.asp
The MBD file is edited using Access (2003) and opening...
|
by: cnu |
last post by:
My program generates a log file for every event that happens in the program.
So, I open the file and keep it open till the end. This is how I open the
file for writing:
<CODE>
public CLogHandler()
{
this.m_fsLog = new FileStream(strTodaysLogFile, System.IO.FileMode.Append,
System.IO.FileAccess.Write, System.IO.FileShare.Read);
this.m_swLog = new StreamWriter(this.m_fsLog);
|
by: Paul Malcomson |
last post by:
I'm trying to finish implementing security on my database. I have
secured the .mdb with a .mdw file as per the MS security FAQ with no
problems.
The last part of security that I need to implement is that the first
person to open and log on to the database gets to use the database.
Any subsequent log on users will flip into READ-ONLY mode and won't be
able to modify any data.
All my users belong to a 'full-data-access' group that...
| |
by: BenSimmons |
last post by:
Hi i'm creating a program that reads various log files from another
program (Find-a-Drug DC project).
The problem is, when I read some of the logs I get the error
This process cannot access the file"C:\...." because it
is being used by another process
Well I know that :) as it's the log files for a constantly running DC
program.
The code below is what I'm using.
|
by: UnnamedIdiot |
last post by:
There ought to be a simple way, but my searches are coming up void. . .
The situation is simple. I have a text log file which is open and being
written to by another application. I wish to monitor the file for
particular entries and respond programmaticaly. I cannot open the file
via streamreader, or I get the typical exception that the file is being
used by another process. (I know this.)
I can create a filesystemmonitor object...
|
by: klynn |
last post by:
Hi:
I'm having problems reading a Microsoft Access file from my ASP.Net app on a
Windows Server 2003 machine. The error message:
The Microsoft database engine cannot open the file, <my_file>. It is
already opened exclusively by another user, or you need permission to view
its data.
I've read some info about this (microsoft support article q316675) but I'm
still confused on what to do?
|
by: bazzer |
last post by:
hey,
im trying to access a microsoft access database from an ASP.NET web
application in visual basic 2003.NET. i get the following error when i
try running it:
Server Error in '/CinemaBookingSystem' Application.
--------------------------------------------------------------------------------
ERROR General error
Unable to open registry key 'Temporary (volatile) Jet DSN for process
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |