Update text file real time

E

Eric Nguyen

Hi,
I have to update my log file (.txt) every time the program finishes uploading
files to server. Log file is written to using FileStream now. However, if
I'm reading the text file (using Pocket Word) at the time the process try
to open and write, I'll get an IOException. Anyway I can update the text
file and see the data updated in PocketWord without close/open it again?
Thanks for all your time
Eric
 
P

Paul G. Tobey [eMVP]

No way to accomplish this that I can think of. You might conceivably be
able to cause Pocket Word to open the file read-only, in which case it
shouldn't care that someone is changing it, but I don't think it will
'update', either.

You sure targeted a lot of groups where this message doesn't belong. What
does this have to do with Pocket PC networking, for example? Try to limit
your cross-posting. This would be fine targeted at the .NET CF group
*only*.

Paul T.
 
E

Eric Nguyen

Sorry about the confusion, this sure is my first time on a PPC dev group.
Anyway, the reason I'm asking because I saw it works in an application. There
were a "View Log" button that open PocketWord and text data was appended
to the file, which we could see directly onscreen. From what I saw, I think
the application was developed by eVC...

Eric

Hello Paul G. Tobey [eMVP]" p space tobey no spam AT no instrument no spam
DOT com,
 
P

Paul G. Tobey [eMVP]

Huh? Sure, you can have a button that launches Pocket Word. There's no
reason that this would be a problem. What happens when more log data is
inserted and you choose Pocket Word from the Start menu to see what's in
there? Same as before the new log data, I would suppose. If you hit the
Show Log button again, presumably it's launching Pocket Word again...

Paul T.

Eric Nguyen said:
Sorry about the confusion, this sure is my first time on a PPC dev group.
Anyway, the reason I'm asking because I saw it works in an application.
There were a "View Log" button that open PocketWord and text data was
appended to the file, which we could see directly onscreen. From what I
saw, I think the application was developed by eVC...

Eric

Hello Paul G. Tobey [eMVP]" p space tobey no spam AT no instrument no spam
DOT com,
No way to accomplish this that I can think of. You might conceivably
be able to cause Pocket Word to open the file read-only, in which case
it shouldn't care that someone is changing it, but I don't think it
will 'update', either.

You sure targeted a lot of groups where this message doesn't belong.
What does this have to do with Pocket PC networking, for example? Try
to limit your cross-posting. This would be fine targeted at the .NET
CF group *only*.

Paul T.
 
E

Eric Nguyen

The thing is I'm reading data line 1 to 10 in PocketWord and with a "flash"
I see document now has line 11 added in....

Hello Paul G. Tobey [eMVP]" p space tobey no spam AT no instrument no spam
DOT com,
Huh? Sure, you can have a button that launches Pocket Word. There's
no reason that this would be a problem. What happens when more log
data is inserted and you choose Pocket Word from the Start menu to see
what's in there? Same as before the new log data, I would suppose.
If you hit the Show Log button again, presumably it's launching Pocket
Word again...

Paul T.

Sorry about the confusion, this sure is my first time on a PPC dev
group. Anyway, the reason I'm asking because I saw it works in an
application. There were a "View Log" button that open PocketWord and
text data was appended to the file, which we could see directly
onscreen. From what I saw, I think the application was developed by
eVC...

Eric

Hello Paul G. Tobey [eMVP]" p space tobey no spam AT no instrument no
spam DOT com,
No way to accomplish this that I can think of. You might
conceivably be able to cause Pocket Word to open the file read-only,
in which case it shouldn't care that someone is changing it, but I
don't think it will 'update', either.

You sure targeted a lot of groups where this message doesn't belong.
What does this have to do with Pocket PC networking, for example?
Try to limit your cross-posting. This would be fine targeted at the
.NET CF group *only*.

Paul T.


Hi,
I have to update my log file (.txt) every time the program finishes
uploading files to server. Log file is written to using FileStream
now.
However, if I'm reading the text file (using Pocket Word) at the
time
the
process try to open and write, I'll get an IOException. Anyway I
can
update the text file and see the data updated in PocketWord without
close/open it again?
Thanks for all your time
Eri
 
P

Paul G. Tobey [eMVP]

Well, maybe PW is smarter than I thought. Make sure that, when you open the
file you are doing so in a way that allows sharing...

Paul T.

Eric Nguyen said:
The thing is I'm reading data line 1 to 10 in PocketWord and with a
"flash" I see document now has line 11 added in....
Hello Paul G. Tobey [eMVP]" p space tobey no spam AT no instrument no spam
DOT com,
Huh? Sure, you can have a button that launches Pocket Word. There's
no reason that this would be a problem. What happens when more log
data is inserted and you choose Pocket Word from the Start menu to see
what's in there? Same as before the new log data, I would suppose.
If you hit the Show Log button again, presumably it's launching Pocket
Word again...

Paul T.

Sorry about the confusion, this sure is my first time on a PPC dev
group. Anyway, the reason I'm asking because I saw it works in an
application. There were a "View Log" button that open PocketWord and
text data was appended to the file, which we could see directly
onscreen. From what I saw, I think the application was developed by
eVC...

Eric

Hello Paul G. Tobey [eMVP]" p space tobey no spam AT no instrument no
spam DOT com,

No way to accomplish this that I can think of. You might
conceivably be able to cause Pocket Word to open the file read-only,
in which case it shouldn't care that someone is changing it, but I
don't think it will 'update', either.

You sure targeted a lot of groups where this message doesn't belong.
What does this have to do with Pocket PC networking, for example?
Try to limit your cross-posting. This would be fine targeted at the
.NET CF group *only*.

Paul T.


Hi,
I have to update my log file (.txt) every time the program finishes
uploading files to server. Log file is written to using FileStream
now.
However, if I'm reading the text file (using Pocket Word) at the
time
the
process try to open and write, I'll get an IOException. Anyway I
can
update the text file and see the data updated in PocketWord without
close/open it again?
Thanks for all your time
Eric
 
N

neilhza

Hi Eric

Are you sending the txt log file across to the desktop or keeping it on
the PDA? I'm trying to get xml data files copied across
programmatically but having no luck figuring this out (I'm experienced
in c# web/windows but very new to windows mobile). If you're copying
yours across programmatically please let me know how it works?
Well, maybe PW is smarter than I thought. Make sure that, when you open the
file you are doing so in a way that allows sharing...

Paul T.

Eric Nguyen said:
The thing is I'm reading data line 1 to 10 in PocketWord and with a
"flash" I see document now has line 11 added in....
Hello Paul G. Tobey [eMVP]" p space tobey no spam AT no instrument no spam
DOT com,
Huh? Sure, you can have a button that launches Pocket Word. There's
no reason that this would be a problem. What happens when more log
data is inserted and you choose Pocket Word from the Start menu to see
what's in there? Same as before the new log data, I would suppose.
If you hit the Show Log button again, presumably it's launching Pocket
Word again...

Paul T.


Sorry about the confusion, this sure is my first time on a PPC dev
group. Anyway, the reason I'm asking because I saw it works in an
application. There were a "View Log" button that open PocketWord and
text data was appended to the file, which we could see directly
onscreen. From what I saw, I think the application was developed by
eVC...

Eric

Hello Paul G. Tobey [eMVP]" p space tobey no spam AT no instrument no
spam DOT com,

No way to accomplish this that I can think of. You might
conceivably be able to cause Pocket Word to open the file read-only,
in which case it shouldn't care that someone is changing it, but I
don't think it will 'update', either.

You sure targeted a lot of groups where this message doesn't belong.
What does this have to do with Pocket PC networking, for example?
Try to limit your cross-posting. This would be fine targeted at the
.NET CF group *only*.

Paul T.


Hi,
I have to update my log file (.txt) every time the program finishes
uploading files to server. Log file is written to using FileStream
now.
However, if I'm reading the text file (using Pocket Word) at the
time
the
process try to open and write, I'll get an IOException. Anyway I
can
update the text file and see the data updated in PocketWord without
close/open it again?
Thanks for all your time
Eric
 
P

Paul G. Tobey [eMVP]

Your post appears to be completely off-topic to me.

Paul T.

neilhza said:
Hi Eric

Are you sending the txt log file across to the desktop or keeping it on
the PDA? I'm trying to get xml data files copied across
programmatically but having no luck figuring this out (I'm experienced
in c# web/windows but very new to windows mobile). If you're copying
yours across programmatically please let me know how it works?
Well, maybe PW is smarter than I thought. Make sure that, when you open
the
file you are doing so in a way that allows sharing...

Paul T.

Eric Nguyen said:
The thing is I'm reading data line 1 to 10 in PocketWord and with a
"flash" I see document now has line 11 added in....
Hello Paul G. Tobey [eMVP]" p space tobey no spam AT no instrument no
spam
DOT com,

Huh? Sure, you can have a button that launches Pocket Word. There's
no reason that this would be a problem. What happens when more log
data is inserted and you choose Pocket Word from the Start menu to see
what's in there? Same as before the new log data, I would suppose.
If you hit the Show Log button again, presumably it's launching Pocket
Word again...

Paul T.


Sorry about the confusion, this sure is my first time on a PPC dev
group. Anyway, the reason I'm asking because I saw it works in an
application. There were a "View Log" button that open PocketWord and
text data was appended to the file, which we could see directly
onscreen. From what I saw, I think the application was developed by
eVC...

Eric

Hello Paul G. Tobey [eMVP]" p space tobey no spam AT no instrument no
spam DOT com,

No way to accomplish this that I can think of. You might
conceivably be able to cause Pocket Word to open the file read-only,
in which case it shouldn't care that someone is changing it, but I
don't think it will 'update', either.

You sure targeted a lot of groups where this message doesn't belong.
What does this have to do with Pocket PC networking, for example?
Try to limit your cross-posting. This would be fine targeted at the
.NET CF group *only*.

Paul T.


Hi,
I have to update my log file (.txt) every time the program finishes
uploading files to server. Log file is written to using FileStream
now.
However, if I'm reading the text file (using Pocket Word) at the
time
the
process try to open and write, I'll get an IOException. Anyway I
can
update the text file and see the data updated in PocketWord without
close/open it again?
Thanks for all your time
Eric
 
N

neilhza

A simple yes or no would have sufficed. I'll bugger off then, I made
the mistake of thinking you were here to share experience and
suggestions, my mistake.
Your post appears to be completely off-topic to me.

Paul T.

neilhza said:
Hi Eric

Are you sending the txt log file across to the desktop or keeping it on
the PDA? I'm trying to get xml data files copied across
programmatically but having no luck figuring this out (I'm experienced
in c# web/windows but very new to windows mobile). If you're copying
yours across programmatically please let me know how it works?
Well, maybe PW is smarter than I thought. Make sure that, when you open
the
file you are doing so in a way that allows sharing...

Paul T.

The thing is I'm reading data line 1 to 10 in PocketWord and with a
"flash" I see document now has line 11 added in....
Hello Paul G. Tobey [eMVP]" p space tobey no spam AT no instrument no
spam
DOT com,

Huh? Sure, you can have a button that launches Pocket Word. There's
no reason that this would be a problem. What happens when more log
data is inserted and you choose Pocket Word from the Start menu to see
what's in there? Same as before the new log data, I would suppose.
If you hit the Show Log button again, presumably it's launching Pocket
Word again...

Paul T.


Sorry about the confusion, this sure is my first time on a PPC dev
group. Anyway, the reason I'm asking because I saw it works in an
application. There were a "View Log" button that open PocketWord and
text data was appended to the file, which we could see directly
onscreen. From what I saw, I think the application was developed by
eVC...

Eric

Hello Paul G. Tobey [eMVP]" p space tobey no spam AT no instrument no
spam DOT com,

No way to accomplish this that I can think of. You might
conceivably be able to cause Pocket Word to open the file read-only,
in which case it shouldn't care that someone is changing it, but I
don't think it will 'update', either.

You sure targeted a lot of groups where this message doesn't belong.
What does this have to do with Pocket PC networking, for example?
Try to limit your cross-posting. This would be fine targeted at the
.NET CF group *only*.

Paul T.


Hi,
I have to update my log file (.txt) every time the program finishes
uploading files to server. Log file is written to using FileStream
now.
However, if I'm reading the text file (using Pocket Word) at the
time
the
process try to open and write, I'll get an IOException. Anyway I
can
update the text file and see the data updated in PocketWord without
close/open it again?
Thanks for all your time
Eric
 
G

Guest

Next time follow NG courtesy and start a new thread when you have a
question. Paul simply stated that your post was off-topic, which it was.


--
Chris Tacke
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--



neilhza said:
A simple yes or no would have sufficed. I'll bugger off then, I made
the mistake of thinking you were here to share experience and
suggestions, my mistake.
Your post appears to be completely off-topic to me.

Paul T.

neilhza said:
Hi Eric

Are you sending the txt log file across to the desktop or keeping it on
the PDA? I'm trying to get xml data files copied across
programmatically but having no luck figuring this out (I'm experienced
in c# web/windows but very new to windows mobile). If you're copying
yours across programmatically please let me know how it works?

Paul G. Tobey [eMVP] wrote:
Well, maybe PW is smarter than I thought. Make sure that, when you
open
the
file you are doing so in a way that allows sharing...

Paul T.

The thing is I'm reading data line 1 to 10 in PocketWord and with a
"flash" I see document now has line 11 added in....
Hello Paul G. Tobey [eMVP]" p space tobey no spam AT no instrument
no
spam
DOT com,

Huh? Sure, you can have a button that launches Pocket Word.
There's
no reason that this would be a problem. What happens when more log
data is inserted and you choose Pocket Word from the Start menu to
see
what's in there? Same as before the new log data, I would suppose.
If you hit the Show Log button again, presumably it's launching
Pocket
Word again...

Paul T.


Sorry about the confusion, this sure is my first time on a PPC dev
group. Anyway, the reason I'm asking because I saw it works in an
application. There were a "View Log" button that open PocketWord
and
text data was appended to the file, which we could see directly
onscreen. From what I saw, I think the application was developed
by
eVC...

Eric

Hello Paul G. Tobey [eMVP]" p space tobey no spam AT no instrument
no
spam DOT com,

No way to accomplish this that I can think of. You might
conceivably be able to cause Pocket Word to open the file
read-only,
in which case it shouldn't care that someone is changing it, but
I
don't think it will 'update', either.

You sure targeted a lot of groups where this message doesn't
belong.
What does this have to do with Pocket PC networking, for example?
Try to limit your cross-posting. This would be fine targeted at
the
.NET CF group *only*.

Paul T.


Hi,
I have to update my log file (.txt) every time the program
finishes
uploading files to server. Log file is written to using
FileStream
now.
However, if I'm reading the text file (using Pocket Word) at the
time
the
process try to open and write, I'll get an IOException. Anyway I
can
update the text file and see the data updated in PocketWord
without
close/open it again?
Thanks for all your time
Eric
 

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