Jill_the_Return | J'ai changé mon program
Code :
- program dat
- implicit none
- character (len=25) :: Name
- character (len=13) :: ISBN
- integer :: i, publish_year
- real :: price
- open(unit=10, file="homework_6.dat", status="old", action="readwrite" )
- open(unit=11, file="output_hw6.dat" )
- !Comment: these below 3 lines are for skipping 3 heading your input
- read(10,*)
- read(10,*)
- read(10,*)
- do i=1, 10
- read (10,*) Name, publish_year, price, ISBN
- write (11,1) Name, publish_year, price, ISBN
- 1 format(a25,2x,i4,2x,f3.2,2x,a13)
- end do
- close(unit=10)
- end program dat
|
Mais j'ai toujours une erreur pour la ligne 14
ERROR 52, invalid character in field DAT - in file homework.f95 at line 14 [+01b3]
Je vais essayer ce que tu me proposes |