I have a Document Library called "x" with file named "y". I am curious what the best way to get the SPFile object for the specified SPListItem. Currently I am using this:
SPContext.Current.Web.Lists["x"].Items[0].File
I don't like using [0] to get the SPListItem... interested in reccomendations
TIA