Task

(Over)write a file so that it contains a string.



The reverse of Read entire file—for when you want to update or create a file which you would read in its entirety all at once.




 
 
# Program to overwrite an existing file
 
open(11,FILE="file.txt")
101 format(A)
write(11,101) "Hello World"
close(11)
 
end
 