|I need to seperate them out depending of the encoding like say UTF8 or ASCII|
This might be impossible, unless the UTF-8 files have the not recommended UTF-8 BOM in it.
number of columns in row 3
This presumes a lot more about the files than what you've told us.
How To Ask Questions The Smart Way