You can use the SPWeb GetFile method to retrive the SPFile located at a specified url. Try something like this:
SPFile file = SPContext.Current.Web.GetFile(string.Format("{0}/{1}", x, y));
SPFile file = SPContext.Current.Web.GetFile(string.Format("{0}/{1}", x, y));