I'm just starting to learn c++ and need to know how would you read the first line from a file and write to a new file? thanks
Jump to Post
well you need an ofstream object opened to the file that you want. after you do that in for loop output the char array to the file using the >> operator.
All 5 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.