Hi
I have somne text
The problem I have is the following changes is length
I can read in the text no problem, but how can I strip the [] from a string
I can read the text up until the [
Then read in say the next 3 characters e.g. 6]. 16]
But how can I then trim off what I don't need e.g. ].
Thanks
Phil
I have somne text
Code:
15.01.06 07:49:39 102374 jobs_worker: loc_para[6].loc_port 20200
15.01.06 07:49:39 102374 jobs_worker: loc_para[6].connectname smp/smp@ba_asmpma
15.01.06 07:49:39 102374 jobs_worker: loc_para[6].thread_no 6
The problem I have is the following changes is length
Code:
jobs_worker: loc_para[6].thread_no 6
jobs_worker: loc_para[16].thread_no 16
jobs_worker: loc_para[104].thread_no 104
I can read in the text no problem, but how can I strip the [] from a string
I can read the text up until the [
Then read in say the next 3 characters e.g. 6]. 16]
But how can I then trim off what I don't need e.g. ].
Thanks
Phil