落葉
郡山。日本 **** 心情不好 程式也寫不好 什麼都不好 **** It’s been a long time that I did not code something serious (maybe.. never serious though). Today, I try to write a small program that can read in a file, find some string I am looking for, replace them into other strings, and write back to the file. Sounds like a simple task, huh? But it took me a lot of time handling I/O stuff. At first, I tried to use the primitive fopen that comes with c standard library. However, I am too lazy to use gets and puts, let alone comparing strings by myself. So I turned to look for c++ solutions. Obviously, it’s much easier to use iostream instead of fopen. Maybe, I should find some time to repolish my basic skills of c++ programming because it’s always far from being solid for me.