Πέμπτη 8 Απριλίου 2010

RED ALERT stdio.h SUCKS, fstream FTW

Ah, I don't fee... I don't feel so well... I just found out that fstream is way faster than stdio.h! Ha? You knew? Good for you!

I did a test on my linux machine. I tested writing and opening/closing files, not reading, as I felt the urgent need to kill myself after the first 2 tests.

I should note that I used fprintf() and the << operator for writing and the fopen()/fclose() and ::open()/::close() functions for opening/closing the files.

I might give you the test results sometime.

Happy coding fstream-ers.

Δεν υπάρχουν σχόλια:

Δημοσίευση σχολίου