Split file to objects