The easiest way is to start with a Regex. Assuming that the data is always in the form
<prefix bit><space><number you want>
Then the first task is to extract them as separate "codes":
public static Regex regex = new Regex(
"[^\\s]+\\s\\d+(\\s|$)",
RegexOptions.Multiline
| RegexOptions.Compiled
);
Should do it.
Then use the regex on the file content:
string dataFromFile = File.ReadAllText(path);
MatchCollection matches = regex.Matches(dataFromFile);
if (ms.Count > 0)
{
foreach (Match m in matches)
{
string code = m.Value.Trim();
char[] reversed = code.Reverse().ToArray();
...
}
}