How To Write An Adjacency Matrix To A File And Read From The File You Have Written To?
I want to write a program which accepts a file name and a table representing an adjacency matrix which writes the adjacency matrix to that file. This should follow the same format
Solution 1:
You need to close your file before re-opening it and reading from it. Add this line before reading from your file.
writeToThis.close()
Post a Comment for "How To Write An Adjacency Matrix To A File And Read From The File You Have Written To?"