Created
July 25, 2018 01:17
-
-
Save hadynz/b2cac13ca8a835db9f30faf8dec161c3 to your computer and use it in GitHub Desktop.
Refactor code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
byte[] ReadFile(string FileName) | |
{ | |
Byte[] resutl = new Byte[1024]; | |
StreamReader x = new Streamreader("c:\test.txt"); | |
try{ | |
x.Read(results, 64); | |
}catch(Exception e) | |
{ | |
//Do nothing | |
throw e; | |
} return results; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment