Advertisement
ThatGuyGilby

Simple Ignore Space C#

Dec 4th, 2019
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.26 KB | None | 0 0
  1.     private int ReadNextCharacter(StreamReader _streamReader)
  2.     {
  3.         int testing = 32;
  4.  
  5.         do
  6.         {
  7.             testing = _streamReader.Read();
  8.         } while (testing == 32 && !_streamReader.EndOfStream);
  9.  
  10.         return testing;
  11.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement