I am relatively new to JZOS. Could someone tell me if it is possible to read and write to the same file(input and output operation).
My requirement is i want to write to a file, then read the same file and do more processing.
I get the error : file is open() error
regards
Read and Write operation on the same file
Re: Read and Write operation on the same file
Hi !!!
Any help is appreciated!!!
Any help is appreciated!!!
Re: Read and Write operation on the same file
Hi,
Try use something like that eg.:
ZFile zFile = new ZFile("//DD:FILEIN", "wb,type=record,noseek");
do something with zFile....
zFile.reopen("rb,type=record,noseek");
do something with zFile....
.....
Try use something like that eg.:
ZFile zFile = new ZFile("//DD:FILEIN", "wb,type=record,noseek");
do something with zFile....
zFile.reopen("rb,type=record,noseek");
do something with zFile....
.....