Is there a way to output data to a log file in ascii rather than binary? The example in my book only output data in binary. I want to create a log file that logs error messages that I can use to debug my code. Thanks.

know how to write a text file? should be examples in all c++ texts. or alternatively there are a couple of libraries available to do logging, check on sourceforge.

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.