title: is there a shorter way to do this?
body: <p>surely, there is a shorter way to do this?</p>
  
  <pre><code>NSString *filePathA = [[NSBundle mainBundle] pathForResource:@"A" ofType:@"txt"];
  NSString *myTextA= [NSString stringWithContentsOfFile:filePathA encoding:NSUTF8StringEncoding error:nil];
  NSArray *arrayStructuresA = [myTextA componentsSeparatedByString:@"-"];
  
  
  
  
  NSString *filePathB = [[NSBundle mainBundle] pathForResource:@"B" ofType:@"txt"];
  NSString *myTextB= [NSString stringWithContentsOfFile:filePathB encoding:NSUTF8StringEncoding error:nil];
  NSArray *arrayStructuresB = [myTextB componentsSeparatedByString:@"-"];
  
  NSString *filePathC = [[NSBundle mainBundle] pathForResource:@"C" ofType:@"txt"];
  NSString *myTextC= [NSString stringWithContentsOfFile:filePathC encoding:NSUTF8StringEncoding error:nil];
  NSArray *arrayStructuresC = [myTextC componentsSeparatedByString:@"-"];
  
  NSString *filePathD = [[NSBundle mainBundle] pathForResource:@"D" ofType:@"txt"];
  NSString *myTextD= [NSString stringWithContentsOfFile:filePathD encoding:NSUTF8StringEncoding error:nil];
  NSArray *arrayStructuresD = [myTextD componentsSeparatedByString:@"-"];
  
  NSString *filePathE = [[NSBundle mainBundle] pathForResource:@"E" ofType:@"txt"];
  NSString *myTextE= [NSString stringWithContentsOfFile:filePathE encoding:NSUTF8StringEncoding error:nil];
  NSArray *arrayStructuresE = [myTextE componentsSeparatedByString:@"-"];
  
  NSString *filePathF = [[NSBundle mainBundle] pathForResource:@"F" ofType:@"txt"];
  NSString *myTextF= [NSString stringWithContentsOfFile:filePathF encoding:NSUTF8StringEncoding error:nil];
  NSArray *arrayStructuresF = [myTextF componentsSeparatedByString:@"-"];
  
  NSString *filePathG = [[NSBundle mainBundle] pathForResource:@"G" ofType:@"txt"];
  NSString *myTextG= [NSString stringWithContentsOfFile:filePathG encoding:NSUTF8StringEncoding error:nil];
  NSArray *arrayStructuresG = [myTextG componentsSeparatedByString:@"-"];
  
  NSString *filePathH = [[NSBundle mainBundle] pathForResource:@"H" ofType:@"txt"];
  NSString *myTextH= [NSString stringWithContentsOfFile:filePathH encoding:NSUTF8StringEncoding error:nil];
  NSArray *arrayStructuresH = [myTextH componentsSeparatedByString:@"-"];
  
  NSString *filePathI = [[NSBundle mainBundle] pathForResource:@"I" ofType:@"txt"];
  NSString *myTextI= [NSString stringWithContentsOfFile:filePathI encoding:NSUTF8StringEncoding error:nil];
  NSArray *arrayStructuresI = [myTextI componentsSeparatedByString:@"-"];
  
  NSString *filePathJ = [[NSBundle mainBundle] pathForResource:@"J" ofType:@"txt"];
  NSString *myTextJ= [NSString stringWithContentsOfFile:filePathJ encoding:NSUTF8StringEncoding error:nil];
  NSArray *arrayStructuresJ = [myTextJ componentsSeparatedByString:@"-"];
  
  NSString *filePathK = [[NSBundle mainBundle] pathForResource:@"K" ofType:@"txt"];
  NSString *myTextK= [NSString stringWithContentsOfFile:filePathK encoding:NSUTF8StringEncoding error:nil];
  NSArray *arrayStructuresK = [myTextK componentsSeparatedByString:@"-"];
  
  NSString *filePathL = [[NSBundle mainBundle] pathForResource:@"L" ofType:@"txt"];
  NSString *myTextL= [NSString stringWithContentsOfFile:filePathL encoding:NSUTF8StringEncoding error:nil];
  NSArray *arrayStructuresL = [myTextL componentsSeparatedByString:@"-"];
  
  NSString *filePathM = [[NSBundle mainBundle] pathForResource:@"M" ofType:@"txt"];
  NSString *myTextM= [NSString stringWithContentsOfFile:filePathM encoding:NSUTF8StringEncoding error:nil];
  NSArray *arrayStructuresM = [myTextM componentsSeparatedByString:@"-"];
  
  NSString *filePathN = [[NSBundle mainBundle] pathForResource:@"N" ofType:@"txt"];
  NSString *myTextN = [NSString stringWithContentsOfFile:filePathN encoding:NSUTF8StringEncoding error:nil];
  NSArray *arrayStructuresN = [myTextN componentsSeparatedByString:@"-"];
  
  NSString *filePathO = [[NSBundle mainBundle] pathForResource:@"O" ofType:@"txt"];
  NSString *myTextO= [NSString stringWithContentsOfFile:filePathO encoding:NSUTF8StringEncoding error:nil];
  NSArray *arrayStructuresO = [myTextO componentsSeparatedByString:@"-"];
  
  NSString *filePathP = [[NSBundle mainBundle] pathForResource:@"P" ofType:@"txt"];
  NSString *myTextP= [NSString stringWithContentsOfFile:filePathP encoding:NSUTF8StringEncoding error:nil];
  NSArray *arrayStructuresP = [myTextP componentsSeparatedByString:@"-"];
  
  NSString *filePathQ = [[NSBundle mainBundle] pathForResource:@"Q" ofType:@"txt"];
  NSString *myTextQ= [NSString stringWithContentsOfFile:filePathQ encoding:NSUTF8StringEncoding error:nil];
  NSArray *arrayStructuresQ = [myTextQ componentsSeparatedByString:@"-"];
  
  NSString *filePathR = [[NSBundle mainBundle] pathForResource:@"R" ofType:@"txt"];
  NSString *myTextR= [NSString stringWithContentsOfFile:filePathR encoding:NSUTF8StringEncoding error:nil];
  NSArray *arrayStructuresR = [myTextR componentsSeparatedByString:@"-"];
  
  NSString *filePathS = [[NSBundle mainBundle] pathForResource:@"S" ofType:@"txt"];
  NSString *myTextS= [NSString stringWithContentsOfFile:filePathS encoding:NSUTF8StringEncoding error:nil];
  NSArray *arrayStructuresS = [myTextS componentsSeparatedByString:@"-"];
  
  NSString *filePathT = [[NSBundle mainBundle] pathForResource:@"T" ofType:@"txt"];
  NSString *myTextT= [NSString stringWithContentsOfFile:filePathT encoding:NSUTF8StringEncoding error:nil];
  NSArray *arrayStructuresT = [myTextT componentsSeparatedByString:@"-"];
  
  NSString *filePathU = [[NSBundle mainBundle] pathForResource:@"U" ofType:@"txt"];
  NSString *myTextU= [NSString stringWithContentsOfFile:filePathU encoding:NSUTF8StringEncoding error:nil];
  NSArray *arrayStructuresU = [myTextU componentsSeparatedByString:@"-"];
  
  NSString *filePathV = [[NSBundle mainBundle] pathForResource:@"V" ofType:@"txt"];
  NSString *myTextV= [NSString stringWithContentsOfFile:filePathV encoding:NSUTF8StringEncoding error:nil];
  NSArray *arrayStructuresV = [myTextV componentsSeparatedByString:@"-"];
  
  NSString *filePathW = [[NSBundle mainBundle] pathForResource:@"W" ofType:@"txt"];
  NSString *myTextW= [NSString stringWithContentsOfFile:filePathW encoding:NSUTF8StringEncoding error:nil];
  NSArray *arrayStructuresW = [myTextW componentsSeparatedByString:@"-"];
  //none with "X"
  //NSString *filePathX = [[NSBundle mainBundle] pathForResource:@"X" ofType:@"txt"];
  //NSString *myTextX= [NSString stringWithContentsOfFile:filePathX encoding:NSUTF8StringEncoding error:nil];
  //NSArray *arrayStructuresX = [myTextX componentsSeparatedByString:@"-"];
  
  NSString *filePathY = [[NSBundle mainBundle] pathForResource:@"Y" ofType:@"txt"];
  NSString *myTextY= [NSString stringWithContentsOfFile:filePathY encoding:NSUTF8StringEncoding error:nil];
  NSArray *arrayStructuresY = [myTextY componentsSeparatedByString:@"-"];
  
  NSString *filePathZ = [[NSBundle mainBundle] pathForResource:@"Z" ofType:@"txt"];
  NSString *myTextZ= [NSString stringWithContentsOfFile:filePathZ encoding:NSUTF8StringEncoding error:nil];
  NSArray *arrayStructuresZ = [myTextZ componentsSeparatedByString:@"-"];
  </code></pre>
  
  <p>any ideas? I was suggested to refract it, but i have no idea how to that!!</p>
  
  <p>thanks</p>
  
  <p>Sam</p>
  
  <p>UPDATE:</p>
  
  <p>[ is repetitive code like this actually bad? im just starting off? would this be considered a bad practice? or a 'don't' in the world of programming? ]</p>