every '.' marks the begining of a new record.
i need to read one record( multiple lines is one record ) and move it to a another file and use it for some other processing.
how to just read one record and stop the further reading of the file. like once x'.' character is encountered in the first byte of the record, i need to stop reading from the file...the job should be terminated.
what i meant was as follows. in the example mentioned, a single record is built in multiple lines and the char x'.' is the record separator. so x'.' marks the beginning of the next record. i want to read the multiple lines that form a record , concatenate them and write it as a single record in another file.
how do i stop reading from the file once i encounter the first x'.' ? this was the doubt. hope i'm clear.