HP Forums

Full Version: hp41cx utility function to trim an ASCII EM file
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Can anyone help me recall a small utility function that automatically resized an EM flle to the minimum size for its current number of records?

I thought it was in the original forum?

Thanks!
Todd
I believe this post may be what you are looking for?

https://www.hpmuseum.org/cgi-sys/cgiwrap...read=38991

Cheers,

Lyle
You may have to adapt to fit your needs but here’s one:
https://www.hpmuseum.org/forum/thread-65...l#pid60476

André
(02-04-2020 01:05 AM)twdeckard Wrote: [ -> ]Can anyone help me recall a small utility function that automatically resized an EM flle to the minimum size for its current number of records?

I thought it was in the original forum?

Define "minimum number of records": all non-zero, consecutive, at the END of the file; is that it?
So the routine4 will have to start checking from the last record, counting records until finding the first non-zero value. There can be more zero records in-between that one found and the file head, but those should remain, correct?
(02-04-2020 03:57 AM)dayd Wrote: [ -> ]You may have to adapt to fit your needs but here’s one:
https://www.hpmuseum.org/forum/thread-65...l#pid60476

André
perfect! that was it
(02-04-2020 12:58 PM)twdeckard Wrote: [ -> ]perfect! that was it

Well... not so perfect it seems, I found a mistake and made a little correction;
=> PKFLAS
Reference URL's