AnsweredAssumed Answered

vrf deleting values from a file

Question asked by VRFuser on Oct 24, 2002
Wisam,
      To append to a file you can just open it and write to it as you have
done.  To delete a value though, read the data into your program ( e.g.
into an integer or text array ), identify the value you want to remove and
write it back to the file: overwrite the original file and omit the
appropriate value.

For example: read the example file using READ TEXT, INT32 FORMAT, Array 1D
TO END (*).  Next identify the value you want to omit, say the 3rd value
[element 2 of the array].

Use a To File object and check the 'clear file at pre-run or open' and
write the array as concat(Ary[0:1],Ary[3:*])

Hope that helps.

Mike Watts

---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@it.lists.it.agilent.com". 
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".

Outcomes