FILE* fp = fopen(filename,"a")
appends lines to the file, how to write to the beginning of the file? Is there a way?
Suppose the file is very large and I don't want to the following: "read the former content to a buffer, add the line to the beginning, then dump all buffer back to the file"