看板Programming
标 题[请教]如果要用fortran同时开10000个txt档......
发信站梦之大地 (Fri Feb 9 21:46:51 2007)
转信站ptt!ctu-reader!ctu-gate!news.nctu!news.nsysu!news.mksh.phc!news.ccns.n
有没有什麽方式可以用简单的指令一口气开10000个档啊
因为每个一个档就要写一次open 感觉很麻烦
而且我要开的txt档都正好的编号顺序的 从0000.txt到9999.txt
如果要一个一个打的话 就得打一万次啊XD
open(10000, file = "0000.txt")
open(10001, file = "0001.txt")
open(10002, file = "0002.txt")
......
....
open(19998, file = "9998.txt")
open(19999, file = "9999.txt")
打完後大概也快毙了吧
--
◢◣ ︵︵ █▔◣ █▔█ █▔▔ █▔█ █▆▉ █ █▔█ █◣█ █▔●
◢◤█◣◢◣ ︵︵ █ █ █▁◤ █▁▁ █▁█ ▉▉▉ █ █▁█ █◥█ █ █
梦之大地 逼逼ㄟ四 █▁◤ █ █ █▁▁ █ █ ▉▉▉ █▁ █ █ █ █ █▁◤
※ Origin: <bbs.ccns.ncku.edu.tw> ◆ From: 140.116.155.243