How would I be able to iterate through each character in a file? The file is of type ifstream.

Member Avatar for iamthwee

Each character?

I would be inclined to read each line in as a std::string Then jump through each char in that string.

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.