File Format

I have an input which is like this

I have an input which is like this

#RowNum ClassNUm Date Pass Mark1 Mark2
#------------------------------------------------------------
0100 201 20070909 0 90 100
0100 203 20070909 1 100 100
0100 301 20070909 0 45 99
0100 231 20070909 1 67 50
0100 267 20070909 1 90 101

I want to modify the first entry as

0100 201 20071203 1 90 100

ie I want to change the date and the pass state of the first row only
How to do that?

If it is a small file, just edit it with ed, vi, vim or your favorite editor.

It is a large file. But the modification is only for the first line.
I want a script which does that:)