12-22-2004, 08:43 AM
im having a problem with file I/O. i dont really know whats wrong but here is the code:
this only prints spaces where it should print the variables. if this isnt enough information, i can post more code, just say so
thanks!
Code:
...
OPEN "array.txt" FOR OUTPUT AS #1"
FOR z = LBOUND(array) TO UBOUND(array)
WRITE #1, array(z).part1, array(z).part2
NEXT z
CLOSE #1
...
OPEN "array.txt" FOR INPUT AS #1"
FOR z = LBOUND(array) TO UBOUND(array)
INPUT #1, array(z).part1, array(z).part2
NEXT z
CLOSE #1
FOR z = LBOUND(array) TO UBOUND(array)
PRINT array(z).part1
PRINT array(z).part2
NEXT z
...
this only prints spaces where it should print the variables. if this isnt enough information, i can post more code, just say so
thanks!