in reply to
input record separator help
It's probably not a good idea to reinvent the wheel every time you need to program a trivially simple bioinformatics problem that thousands have wrestled with before you.
Download, install and use Bioperl instead.
Bioperl on CPAN.
hbriem AT simnet DOT is