Hi,
I have a file text where I want to add all rows into columns until a new blank line is foud, for example:

a
b
c

d
e
f
g


h
i

into

field1 | field2 | field3| field4
--------------------------
a | b | c
--------------------------
d | e | f | g
--------------------------
h | i

How can I do this?
Thanks!