Câu hỏi

26/04/2013 21:47
Đọc file bằng ngôn ngữ C ?
Xin hướng dẫn cách load file sang mảng,và liên kết giữa các file như thế nào,cách truy xuất file (ngôn ngữ C ).
whiteroses
26/04/2013 21:47
Danh sách câu trả lời (1)

Để đọc và xuất file trong ngôn ngữ C thường dùng các class sau:
* ofstream: Stream class to write on files
* ifstream: Stream class to read from files
* fstream: Stream class to both read and write from/to files.
Bạn có thể tham thảo thêm và mã nguồn của chương trình tại http://www.cplusplus.com/doc/tutorial/files.html
* ofstream: Stream class to write on files
* ifstream: Stream class to read from files
* fstream: Stream class to both read and write from/to files.
Bạn có thể tham thảo thêm và mã nguồn của chương trình tại http://www.cplusplus.com/doc/tutorial/files.html
Trả lời câu hỏi
Câu hỏi lĩnh vực Lập trình
Rao vặt Siêu Vip