File parsing script