Hi
I want to insert the record to the beginning of the file not to the end of the file.
If we run operator >>, it appends the record to the end of the file.
Example: Suppose file ‘A’ contains following records
Day 10
Day 20
Day 30
If I run print ‘Day 5’ >> A, file ‘A’ will have records as follows
Day 10
Day 20
Day 30
Day 5
But I want the file ‘A’ should have records in the following order
Day 5
Day 10
Day 20
Day 30.
Could some one please tell me how to achieve this?
Thanks and Regards
Chinmaya