Skip to content

Instantly share code, notes, and snippets.

/lala Secret

Created March 14, 2013 03:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/ed9bb83c29fc793fa869 to your computer and use it in GitHub Desktop.
Save anonymous/ed9bb83c29fc793fa869 to your computer and use it in GitHub Desktop.
def determine
file=File.open("/home/lala.CEL", 'r:UTF-8')
file.each do |line|
type=line.match(/HG-U133_Plus_2/)
puts(type)
end
end
error:
`match': invalid byte sequence in UTF-8 (ArgumentError)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment