當ifstream("c:\\mongo\\test.txt"),則開啟c:\mongo\test.txt(絕對路徑) ... getline==>ifstream的member function,從檔案中讀取一行資料 ... 讀檔的用法(2005-08-17).
blog.xuite.net