seek « File Directory « Ruby






1.position the file pointer 5 bytes from the end of the file and change the character to an X
2.print every fifth character in a file: