I'm writing a program where I take in a file and need to grab strings of n length (n = 3, 4, 5, 6 ,7 or 8).
The issue I'm having is I need to grab these strings in a specific window. So if n = 3 I need to grab the first three chars, save it, then grab characters 2, 3, 4 then save it, then grab characters 4, 5, 6 and save it etc... I'm using get to grab strings of n length, I just don't know how to offset the window to grab the strings after 1.
So if the file contained GATCGAT I would need to get and save the strings GAT, ATC, TCG, CGA, and GAT.
Edited 4 Years Ago by Dewey1040: n/a