Andy Dowie's tackle gave away a 16th-minute penalty kick to the visiting side but Brian Graham could not take advantage as Paul Gallacher dived to his right to parry.
Ryan Wallace soon got the better of Colin Wilson, who slipped, leaving the Pars striker to find the net from 18 yards for the opener (25).
Josh Falkingham then made it two with a header (33) but when Brian Graham dispatched Allan Walker's free-kick six minutes after the restart to make it 2-1, Raith were back in it.
However, Andy Barrowman used his own noggin after 56 minutes to settle the bragging rights for Dunfermline.







