how can I read a text file byte by byte?
eman 22 0 Junior Poster in Training
Recommended Answers
Jump to PostUse the .get() method. Here is an example:
istream fileReader("filename.txt"); char byte; while( fileReader.get(byte) ){ cout << byte; }
All 3 Replies
mrnutty 761 Senior Poster
eman 22 0 Junior Poster in Training
NathanOliver 429 Veteran Poster Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.