I want to convert a fixed width file multiline record to singleline record . The file contain `4 fields`: 
**`date stamp` , `severity`, `error code` & `message type`.** The record data can span across multiple lines based on the data in the field. For example 
`date stamp` field width is `10` characters - but the data value is `19` characters so it spread across two lines. first 10 character will be in first line and next 9 characters is in second line 

**field positions**

**date stamp = 1 - 10**
**severity = 12- 17 [ the values can be error , info , warnings so if the value is warning the remaining data is placed in the second line from 12-17 ]**
**error\_code = 18 -25**
**message = 26- 70**

There are no blank lines between records. 

```
2014-02-21 INFO UTF8_INT  Starting execution of workflow
07:01:59                  [wf_router] in domain.

2014-02-21 error UTF8_INT  SQ_ff:Exchange: Rowdata: ( RowType=0
07:01:59                 (insert) Src Rowid=1 TargIELD:Char.500:):
                          ".Improved By Resting
                         [[&lt;~a~&gt;Resting&lt;~a0~&gt;]]|Lying Down
                         [[&lt;FNT&gt;&lt;!&gt;no Lying Down]]).

2014-02-21 warni UTF8_INT  SQ_ff:Exchange: Rowdata: ( RowType=0
           ng              (insert) Src Rowid=1 TargIELD:Char.500:):
                          ".Improved By Resting
                         [[&lt;~a~&gt;Resting&lt;~a0~&gt;]]|Lying Down
                         [[&lt;FNT&gt;&lt;!&gt;no Lying Down]]).

```

<http://i.stack.imgur.com/EAHSR.png>