|
Hi all ,
I am working on the VB.net project , which downloads text files to my local directory from a server.
Sample text file is provided below
! 07-08-30 05:12:12 00 0002.1159 Information: Component in tape
! 07-08-30 05:13:03 00 0002.1548 Information: RIT1
! 07-08-30 05:16:27 00 0002.1245 Information: End-of-reel
! 07-08-30 05:16:27 00 0002.0027 Question: End of reel?
! 07-08-30 05:16:29 00 0002.1217 Information: Read in lot
My problem is this log file on the server generates new entry every few minutes and when i run my VB program i want only the new line to be updated on the local file.
In other words I want the text file on my local directory to be updated with new lines from the text files located on the server.
Can some one please help me with the code to do the text file updating. Thanks
|
|
|
|
|
Open both files, read through matching off until you reach the end of your local file, re-open it for append and add the records.
If you know the server file is ONLY adding you could do it by counting the number of rows in your local file, and read to that line in your server file before appending, but there is no magical way to do it.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
I am using MS visual dot NET. How can I show an image on Tooltip (Window application) and some thing like that? Because I want to show image of each Employee when cursor move on each row in datagrid. On web application we can use javascript. But this ia Window application. Please give me somes solutions. Thank you so much
asdasda
|
|
|
|
|
Why are you crying?
Simple. You can capture the MouseEnter event, and show a form in that event. In that event, make sure the Left, Top of form coincides appropriately with that of the Control. The form can consist of the PictureBox (which can be used to show the image according to the control. This can be done by setting a Public Shared variable of the parent form and changing the value to the appropriate image url) and other controls for working with the image.
And on MouseLeave you just close the form.
Make sure you make the form looks like a splash screen by changing her properties. BTW you can as well use a PictureBox control directly if you don't want the tooltip to be visible outside your form. I just thought of a more general case when user can probably perform some operations on the image.
-------------------------------------------
It's code that drives you - Shyam
modified on Monday, October 27, 2008 8:09 AM
|
|
|
|
|
Thank you Shyam ... you help me to solve this problem. My firend. I'm from VietNam. where are you?
asdasda
|
|
|
|
|
Moi from india...
|
|
|
|
|
oh. India have very big software industry. I know, India is number software industry in the world. Nice to meet you. My Email is : quyphidao@yahoo.com. Could I have your email? I hope we will be good friends and help each other to improve knowledge....
asdasda
|
|
|
|
|
Please tell me the hex code of N
Arindam Banerjee
Sr. Software Developer
Rance Computer Pvt Ltd.
Kolkata (India)
|
|
|
|
|
Doesn't Google work in India?
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Ashfield wrote: Doesn't Google work in India?
Yes it does. But the guy is a senior software developer @ Rance Computer Pvt Ltd. So googling seems to be a bit low for his position I guess
-------------------------------------------
It's code that drives you - Shyam
|
|
|
|
|
If google is too mainstream, you can always use the 1208930147 search engine.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
ahahahah!
Any suggestions, ideas, or 'constructive criticism' are always welcome.
|
|
|
|
|
It only works on web sites that are the default web for the server, so that you can browse to the ip address instead of the name.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
What do you mean by "hex code"? Do you mean the character code expressed in hexadecimal format?
If you are using windows, start the charmap program and click on the letter.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Guffa wrote: start the charmap program and click on the letter
And you got my 5 . Great answer.
-------------------------------------------
It's code that drives you - Shyam
|
|
|
|
|
Maybe he wants to curse someone
Steve Jowett
-------------------------
Real programmers don't comment their code. If it was hard to write, it should be hard to read.
|
|
|
|
|
How is that related to VB.NET?
Hm, didn't find a underlined N in the Charmap-table.
|
|
|
|
|
Yes
How can Use it?
Arindam Banerjee
Sr. Software Developer
Rance Computer Pvt Ltd.
Kolkata (India)
|
|
|
|
|
Will you promise to call us all Dull and useless software support people if we give you the answer?
Pound salt!
Any suggestions, ideas, or 'constructive criticism' are always welcome.
|
|
|
|
|
pdnet wrote: Sr. Software Developer
|
|
|
|
|
Look it up in an ASCII table ffs.
If you really are a senior software developer, this should be a very basic thing for you to find
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Paul Conrad wrote: If you really are a senior software developer, this should be a very basic thing for you to find
Not to mention that he should already know the most basic things about the ASCII character set, like that the letter A has the character code 65 (0x41). From there you can count on your fingers to get to the letter N...
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Guffa wrote: he should already know the most basic things about the ASCII character set
You'd think so. I don't know about how computer science/programming is taught where ever he was introduced, but that should have been one of the first things covered.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
You are not understand my problem.
I am Serching For N not N
Please tell me the Ascii for underline+N
Arindam Banerjee
Sr. Software Developer
Rance Computer Pvt Ltd.
Kolkata (India)
|
|
|
|
|
There is no such character in the ASCII character set. Styling of the text is not specified in the character itself.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|