Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 12 JAN 1998 03:01:25PM Mick wrote:

I'm trying to read a text file into Arev 3.11, and I understand the difference between OSREAD and OSBREAD, but I'm having a hard time with the syntax or something. The file I'm trying to read in is comma delimited, and is about 220k. So I need to OSBREAD in small chunks of it, process that data, and write back only a portion of it leaving say 160k? Then repeat? Since Arev cant handle bigger than 64K chunks, how do I read the dos file to know how many times to go throught this process? The file could be anywhere from 50k to 400k. Does anybody have examples of their OSBREAD? I read the book about OSBREAD, and it didnt help much. I dont have a COMPUSERVE account, so I cant check the libraries. Thanks to anyone who can help me on this……

  1. Mick 'with a 64k limit on my brain this week' Thaxton…..

At 12 JAN 1998 05:21PM Don Bakke wrote:

Mick,

Check out this post from some abbreviated code on using OSBREAD. I pulled it out of a routine that does exactly what you are trying to do, but there may have been too much editting on my part. If this isn't enough then let me know and I'll post the entire code.

[email protected]

SRP Computer Solutions


At 13 JAN 1998 11:47AM [email protected] wrote:

OSBREAD ITF.REC FROM I.FILE AT ITF.POS LENGTH REC.LEN

1. data is read into variable ITF.REC

2. you must OSOPEN dos file to I.FILE first

3. position in dos file is set by ITF.POS (starts at 0)

4. length is set by REC.LEN

If you cannot determine the size of the file, keep on reading until

the data read from the file is blank … then, you know you're at the end.


At 13 JAN 1998 05:05PM Mick wrote:

Thanks guys…. with your help I think I've got it figured out…..

  1. Mick-

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/a9b29c03bcfb73518525658a006dfe7d.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1