Our efficient method for calculating accurate core-electron binding energies has been applied to hydrocarbons containing up to four carbon atoms. Although the chemical environment around each carbon nucleus is not sufficiently different from one another to distinguish alkyl carbons from alkenyl or alkynyl carbons, the predicted core-electron spectra can be extremely useful in the identification of possible isomers of any CmHn up to m=4.