I'm not exactly sure how you want to use the varfile data.
You can, qtvcp widget origin_offsetview does this.
You must be careful when you read/write to it as linuxcnc does not monitor it for external changes and only syncs the file at specific times.