When you select the row the table view delegate method is called:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
inside this method you can build your file name in this way:
NSString *fileName = [DocumentsFolder stringByAppendingPathComponent:[NSString stringWithFormat:@"%d.txt",indexPath.row+1]];
notice how I used the indexPath.row (that is: row number of selected cell) to build the file name. I suppose in the example that first row (indexed with 0) leads to file name 1.txt
Now you can load this file.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…