read an I/O stream byte by byte with each_byte: : each byte « File Directory « Ruby
- Ruby
- File Directory
- each byte
read an I/O stream byte by byte with each_byte:
File.open("text.txt").each_byte { |byte| puts byte }
Related examples in the same category