function to read featre space format