How do I save a 2d character array into a file in c++? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do I save a 2d character array into a file in c++?

Working on Checkers game recently and need to include this feature for saving the game and load the game

31st Jan 2020, 7:05 PM
Rasul YeaBari Sun Beam
Rasul YeaBari Sun Beam - avatar
2 Answers
+ 2
Just go character by character and write them to a file, almost the same way you would print a 2d array to the screen.
31st Jan 2020, 7:15 PM
Dennis
Dennis - avatar
+ 1
Thank you both🤗
6th Feb 2020, 9:56 AM
Rasul YeaBari Sun Beam
Rasul YeaBari Sun Beam - avatar