Java tutorial
import java.io.File; import java.io.RandomAccessFile; public class Main { public static void main(String[] argv) throws Exception { RandomAccessFile file = new RandomAccessFile(new File("scores.html"), "rw"); for (int i = 1; i <= 6; i++) { System.out.println(file.readLine()); } file.close(); } }