Click here to Skip to main content
15,880,608 members
Home / Discussions / C#
   

C#

 
GeneralRe: Not sure? Help! Pin
Colin Angus Mackay1-Jan-04 22:11
Colin Angus Mackay1-Jan-04 22:11 
QuestionC# StreamReader blocks ? Pin
Luther Baker1-Jan-04 11:26
Luther Baker1-Jan-04 11:26 
AnswerRe: C# StreamReader blocks ? Pin
Colin Angus Mackay1-Jan-04 11:53
Colin Angus Mackay1-Jan-04 11:53 
GeneralRe: C# StreamReader blocks ? Pin
Luther Baker1-Jan-04 19:22
Luther Baker1-Jan-04 19:22 
GeneralC# select equivalent Pin
Luther Baker1-Jan-04 11:20
Luther Baker1-Jan-04 11:20 
GeneralRe: C# select equivalent Pin
Heath Stewart2-Jan-04 5:12
protectorHeath Stewart2-Jan-04 5:12 
GeneralRe: C# select equivalent Pin
Luther Baker2-Jan-04 7:58
Luther Baker2-Jan-04 7:58 
GeneralRe: C# select equivalent Pin
Heath Stewart2-Jan-04 9:06
protectorHeath Stewart2-Jan-04 9:06 
lutherbaker wrote:
I'm trying to implement is the continuous monitoring of a file.

Look into the FileSystemWatcher component. It won't give you the specific changes, but it will be a good indication that a file has changed and then you can store a pointer and increment that to get the next lines.

lutherbaker wrote:
Originally, I was using ReadLine but it seems to drop the first 4 chars of every read.

Confused | :confused: What characters are these that are getting skipped? I take it this is just a simple IIS log or something? I've never seen such behavior.

lutherbaker wrote:
I need it to BLOCK if it can't read any more data in - not return.

Perhaps not. The information is written as a unit (i.e., one line) so you can get that and the number of bytes actually read. When the file changes (see above), continue reading the next block at the offset of the original position plus the actual bytes read.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: C# select equivalent Pin
Luther Baker2-Jan-04 10:19
Luther Baker2-Jan-04 10:19 
GeneralRe: C# select equivalent Pin
Luther Baker2-Jan-04 11:14
Luther Baker2-Jan-04 11:14 
Generalinternet dial Pin
heba_zien1-Jan-04 11:09
heba_zien1-Jan-04 11:09 
GeneralRe: internet dial Pin
Heath Stewart2-Jan-04 4:50
protectorHeath Stewart2-Jan-04 4:50 
GeneralFiltered DataGrid Pin
Heroz1-Jan-04 7:23
Heroz1-Jan-04 7:23 
GeneralRe: Filtered DataGrid Pin
Angel Reyes1-Jan-04 7:35
Angel Reyes1-Jan-04 7:35 
GeneralRe: Filtered DataGrid Pin
Mazdak1-Jan-04 7:44
Mazdak1-Jan-04 7:44 
GeneralRe: Filtered DataGrid Pin
Heroz1-Jan-04 11:44
Heroz1-Jan-04 11:44 
Questionplease, can any one help me? Pin
ImanMahmoud1-Jan-04 6:22
ImanMahmoud1-Jan-04 6:22 
AnswerRe: please, can any one help me? Pin
Angel Reyes1-Jan-04 7:54
Angel Reyes1-Jan-04 7:54 
Generalrounded form Pin
hebzzz1-Jan-04 3:34
hebzzz1-Jan-04 3:34 
GeneralRe: rounded form Pin
Jacky S1-Jan-04 4:47
Jacky S1-Jan-04 4:47 
Generallike this for the form.... Pin
eggie51-Jan-04 6:26
eggie51-Jan-04 6:26 
QuestionHow to handle storage in C#/.NET Pin
Mohsen Sajjadi1-Jan-04 3:18
Mohsen Sajjadi1-Jan-04 3:18 
AnswerRe: How to handle storage in C#/.NET Pin
Mazdak1-Jan-04 5:31
Mazdak1-Jan-04 5:31 
GeneralRe: How to handle storage in C#/.NET Pin
Mohsen Sajjadi1-Jan-04 20:56
Mohsen Sajjadi1-Jan-04 20:56 
AnswerRe: How to handle storage in C#/.NET Pin
Heath Stewart2-Jan-04 4:41
protectorHeath Stewart2-Jan-04 4:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.