Quote: "EDIT:Forgot to note this is Dark Basic Pro."
You don't need to - take a look at the name of the board you posted on...
Quote: "Though it does not seem to write the files required to add"
You might need to expand on that - it doesn't make a lot of sense I'm afraid. What files and add what?
Examining your source code, the first thing that comes to mind is that you should choose more meaningful names for your variables.
For example, 'abc' and 'D' mean very little to someone viewing your code trying to figure out what it's doing - even though you do know what it's doing. The same goes for the lack of indentation.
I can also make a couple of suggestions which might help:
H should be H# as Get Matrix Height returns a float. That isn't be the main problem though.
I don't understand why you are writing 51 files!?
Shouldn't all of the data be written to a single file?
Open to Write 1,Filename$
For Across=0 to 50
For Down= 0 to 50
H#=Get Matrix Height(1,Across,Down)
Write String 1,Str$(H#)
Next Down
next Across
Close File 1
TDK_Man