title: Read from text file one character at a time
body: <p>I'm trying to convert characters in a text file based one what type they are:</p>
  
  <p>Letters > L</p>
  
  <p>Numbers > #</p>
  
  <p>Is there a way to iterate through a file on a per-character basis? The only way I can get it to work currently is nested loops iterating through individual lines within the file. If there's a simpler way, that cuts out a lot of code I'll have to wade through.</p>