請問各位大大
小弟想從檔案中讀取字串
再寫入另一檔案中
小弟是這樣寫的:
character(len=100) :: string
open(10, file='test.txt, status='old', action='read')
open(20, file='output.txt, status='unknow',action='write')
read(10,*) string
write(20,*) wtring
其中test.txt內容為:hello world
但怎麼改輸出在output.txt中的都只有:hello
要怎麼樣才能連空白憶起讀取呢?