79253550

Date: 2024-12-05 06:07:25
Score: 1.5
Natty:
Report link

Each new READ operator starts to read data from a new line. That is a reason why your code does not work properly, as you expected.

If the @lastchance's solution READ (33,*) A will work - it is OK. If not, the straightforward way will be just to make a cycle until end-of-file or until nx*ny numbers is read. At each cycle iteration you would read six (or less) numbers and put them in the corresponding matrix entries.

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @lastchance's
  • Low reputation (1):
Posted by: Michael Ermakov