assassinator
5th November 2008, 04:59
With existed local file, I want to use add mode to write the new records at the end of file.
file.no = seq.open.local(file.name, "a", false)
But the file.no would return 0(I had tested wether the local file exists or not, the return value always is 0). I found the return value >= 0 means success(written in the BaanERP Programmers Guide). In fact, when the 0 return value, it neight create nor read the file. Anyone use it like this?
PS:
I found this program also with file.cp().:confused:
file.no = seq.open.local(file.name, "a", false)
But the file.no would return 0(I had tested wether the local file exists or not, the return value always is 0). I found the return value >= 0 means success(written in the BaanERP Programmers Guide). In fact, when the 0 return value, it neight create nor read the file. Anyone use it like this?
PS:
I found this program also with file.cp().:confused: