open c++ file
how to open a c++ file using c++ program for example i am making a c++ code checker or edit using c++ program first i need to open c++ file and extract the whole program in the text form to string ,thanks if anyone can help

Member Avatar for Search_not

The c++ source file is an unformatted text file, so you can open it just as you would any text file i.e. with the fstream library

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.