In this chapter's introduction, we mentioned the fact that in Elixir, strings are binaries. In this recipe, we will use a binary file (an MP3 file) and apply some of the operations that we previously performed on strings. We will pattern match the MP3 binary file to extract some information—ID3 v2 information—and we will replace a portion of the file—ID3 v1 information—by constructing a new string and concatenating it to the end of the binary file. In the end, we will still have a proper MP3 file that we will be able to play on our favorite music player!
Elixir Cookbook
By :
Elixir Cookbook
By:
Overview of this book
Table of Contents (16 chapters)
Elixir Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
Command Line
Data Types and Structures
Strings and Binaries
Modules and Functions
Processes and Nodes
OTP – Open Telecom Platform
Cowboy and Phoenix
Interactions
Installation and Further Reading
Index
Customer Reviews