# Re: 请帮帮忙啊......呜呜..:同步的档案操作

Posted by cOOLMAN on June 17, 1999 at 12:27:18:

In Reply to: 请帮帮忙啊......呜呜..:同步的档案操作 posted by Sandy on June 17, 1999 at 10:35:38:

: 请问:如何open file与close file中间读取档案后+1写入档案内,且在使用此档案时将此档案locked,我的程式码如下,在读值时没问题,但写入时就出现错误........
: 请帮帮忙啊...........呜呜呜呜呜....

:
: Open filename For Input access read write locked read write As #fNo
: Input #fNo, value
: Print #fNo, value
: Close #fNo

基本上你OPEN方式就有问题, 怎么可能说读档可以!!
Open filename For Input access read write locked read write As #fNo

因为 INPUT 模式开启的档案不能 ACCESS WRITE

Follow Ups:

- Re: 请帮帮忙啊......呜呜..:同步的档案操作 Sandy 12:56:47 6/17/99 (3)
  - 观念不对 小吴 15:06:34 6/17/99 (2)
    - Re: 观念不对 Sandy 19:35:04 6/17/99 (1)
      - 小吴我知道了谢谢你的帮忙,好感激耶...呜呜呜....... Sandy 19:41:11 6/17/99 (0)