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 18 MAR 1999 11:46:37AM reginald crosby, rcrosby@tnc.org wrote:

I'm trying to create a DOS file to hold records my program

kicks out as exceptions.

MY problem is that when the records are being written to the

DOS file they are being overwritten by the next write.

I want the records to APPEND to the file. When I view the file

I see only ONE record instead of 2000.

I am using the OSBWRITE command. Is there another way to create

OS files that append each record instead of overwriting them?


At 18 MAR 1999 12:31PM Matt Sorrell wrote:

Reginald,

Of the type of my head, the syntax for OSBWRITE is:

OSBWRITE VAL ON DOS.FILE AT BYTE

AFTER you do this, you need to increment BYTE by the length of the record. This is very simply done by:

BYTE+=LEN(VAL)

Also, one thing you want to make sure of is that you stick a CRLF (CHAR(13):CHAR(10)) on the end of each record that you write out.

Matt Sorrell

msorrell@movgal.com


At 18 MAR 1999 12:39PM Reginald Crosby wrote:

Thanks!!!!!

It worked!

View this thread on the forum...

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