cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
READ 600MB text file in efficient and fa
READ 600MB text file in efficient and fast way???
Dec 4, 2012 at 8:20pm UTC
ahmedurrehman
(1)
I want to read 600MB text file in a way as fast as possible.. please help me if any can
Dec 4, 2012 at 10:54pm UTC
toum
(353)
use read()
http://www.cplusplus.com/reference/istream/istream/read/
Dec 6, 2012 at 4:15am UTC
SamuelAdams
(1535)
one line at a time.
Dec 6, 2012 at 4:33am UTC
Cubbi
(4774)
memory mapping is usually helful when dealing with fast access to files.
There's portable support for it in boost:
http://www.boost.org/doc/libs/release/libs/iostreams/doc/classes/mapped_file.html#mapped_file_source
Topic archived. No new replies allowed.