Hi there,can anyone tell me how to read multiple lines and store their value.
eg:file.txt
Probable Cause: The network operator has issued an alter attribute command for
the specified LCONF assign. The old value and the new value are show
Action Taken : The assign value is changed from the old value to the new
value. Receipt of this message does not guarantee that the new attribute
value was accepted by clients who use it. Additional messages may be.
Probable Cause: The network operator has issued an info attribute command for
the specified LCONF assign. The default value being used is displaye
Action Taken : None. Informational use only.
In above file,Probable Cause and Action Taken are the column of database table.And after Probable Cause: those are the value to be stored in the database table for probable cause column,same goes with action taken.
so how can i read the multiple lines and store their value.I have to read the value for probable cause until the line comes with Action Taken.I'm using bufferedReader and readLine() function read one line at a time.So can anyone tell me how to read directly from probable cause to action taken no matter how many line comes between them.
With regards
Biraj
eg:file.txt
Probable Cause: The network operator has issued an alter attribute command for
the specified LCONF assign. The old value and the new value are show
Action Taken : The assign value is changed from the old value to the new
value. Receipt of this message does not guarantee that the new attribute
value was accepted by clients who use it. Additional messages may be.
Probable Cause: The network operator has issued an info attribute command for
the specified LCONF assign. The default value being used is displaye
Action Taken : None. Informational use only.
In above file,Probable Cause and Action Taken are the column of database table.And after Probable Cause: those are the value to be stored in the database table for probable cause column,same goes with action taken.
so how can i read the multiple lines and store their value.I have to read the value for probable cause until the line comes with Action Taken.I'm using bufferedReader and readLine() function read one line at a time.So can anyone tell me how to read directly from probable cause to action taken no matter how many line comes between them.
With regards
Biraj
Comment