"|" separated file validations

Hi,

I have a file with "|" separated fields. If the line doesn't contain n(say 9) "|" then put this line in a file called invalid_file.txt. If it does put this row in a file called valid_file.txt.

Any help is highly appreciated.

Thanks,
SK

Closed - Already posted in another forum