lundi 29 août 2016

Write a 2D array into a file without changing it's previous content

I need to write the contents of a matrix into a file.

The 2 dimensional matrix is:

char encodedInst1[20][20] 

I want to pass the updated matrix to a function which writes it to the output file without altering the previous content.Moreover each string should be written in a a new line.

Aucun commentaire:

Enregistrer un commentaire