Created
August 14, 2013 03:08
-
-
Save domgetter/6227690 to your computer and use it in GitHub Desktop.
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
file = File.new("test.wav", "r") | |
file.pos | |
=> 0 | |
file.getc | |
=> "R" | |
# So far so good. wav files should begin with "RIFF" | |
file.pos | |
=> 6722 | |
# Whaaa...?? Why isn't the position at 1? If I run file.getc again I SHOULD get teh next character "I", no? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment