read « File Directory « Ruby






1.read an arbitrary number of bytes from a file into a single variable using read:
2.Reading the Contents of a File
3.Read 50 characters
4.Read file by chunk size