- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
Hello all,
A post-processing code I am updating was written for Open Watcom 1.1 and makes use of the fnextrecl function to process an unformatted, sequential file. The function (I'm guessing) reads the first 4 bytes of the file to determine the record length and then some decision work is performed based on that length.
I am looking for a way to do the same thing in CVF 6.6c: determine the length of the next record and read the record based upon the returned length. A two step work around is fine, too (e.g., read and store the length of each record, rewind, and process).
thanks in advance
tlillys
링크가 복사됨
1 응답
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
The way I would handle this is to open the file FORM="BINARY" and read the length words directly as an integer. There is a 32-bit integer length preceding and following the data. See the Programmer's Guide for details on the layout.
