close inputSidFile if opened
initialize FILE handles