Skip to content

Instantly share code, notes, and snippets.

@hadynz
Created July 25, 2018 01:17
Show Gist options
  • Save hadynz/b2cac13ca8a835db9f30faf8dec161c3 to your computer and use it in GitHub Desktop.
Save hadynz/b2cac13ca8a835db9f30faf8dec161c3 to your computer and use it in GitHub Desktop.
Refactor code
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