Readto char plus 32 other (unknown) chars after it

  • Thread starter Thread starter G-Oker
  • Start date Start date
G

G-Oker

Guest
Hello,

I am trying to read the call data from a very old serial PABX.

I (thought I'd) found out that that the End Of Line was 32 blank spaces. However, that is only the case if the call is internal.

If the call is external then there some of these spaces are replaced with chars, and there are only 15 blanks.

Each call does have a char near prior to the spaces which I could use instead as the readto limiter, but I do not know how to tell it to


string output = sp.ReadTo("I" + 32);



I have tried above, but thats didnt work

At the moment the code I have reads the following as one line, so I can only grab 1/2 the info

00 127 201001 1151 299 0000 9 123456 a 0056 m 0 I 710 9 123456
00 128 201001 1259 709 0000 299 A 0010 A 0 I

What I am trying to grab is

00 127 201001 1151 299 0000 9 123456 a 0056 m 0
00 128 201001 1259 709 0000 299 A 0010 A 0

and I can then deal with them (correctly) as separate calls.


Can someone advise me on how I can readto("I"), but not include the 32chars after it in the next readto/line ?


As alwasy, Thank you :-)

Continue reading...
 
Back
Top