eBook authors eBook Software - create and publish your own ebooks
Create your own eBooks
 
   
EBookApprentice.com
Learn How To Create, Publish & Market E-Books
 
   
EBookCompiler.com
E-Book Creation Software
 
   
EBookPower.com
Add sophisticated multimedia to your E-Books
 
   
CoverFactory.com
Create E-Book covers in minutes
 
 
  EBookSubmit.com
E-Book Marketing & Promotion made easy
 
  EBookJungle.com
Search engine for E-Books
 
  EBookInterviews.com
Interviews with eBook authors
 
  EBookEnhance.com
Tools for building better eBooks
 
 
 
Archived Message:

Activ Scripts to Save/Load from files


 
Lane Hello Everyone,

I have created an ebook and have a need to save some variables to a text file to be retrieved and updated in subsequent usages of the ebook.  (ie: a progress tracker with variables)

There is references of doing this in the help that comes with the Active E-book compiler such as:

"...(you will need to store and reload the variables if you want them to exist during a subsequent E-Book session, for example, by saving to, and loading from, an external file)..."

as well as "Activ Script Files Statements" and "Activ Script INI Files Statements" in the Reference area but neither of these have examples to help achieve this.    Maybe an example on how to save and load variable from an .ini file.

Is there an example of how to achieve this or can someone help me put an example together that we can post here to help others that might want to do the same and need help as well.

Looking forward to any replys.
Thanks,
Lane

(Edited by Lane at 12:22 am on Sep. 11, 2001)

(Edited by Lane at 12:25 am on Sep. 11, 2001)


Posted on: 12:07 am on September 11, 2001
ebookpro Hi Lane,

Sorry that I can't help you with this but Sunil, the developer of Activ eBook, should be back in a few days.  He will definitely give you some examples when he checks this discussion board...

Eva Almeida


Posted on: 5:31 pm on September 11, 2001
EBookCompiler If the variable contains lots of text (with line breaks) then you need to use the FILEREAD and FILEWRITE statements in Activ Script

If you need to just store a simple variable, e.g. page name or something, use an INI file (one file can store lots of variables this way).

Here's an example of saving a variable

INIWRITE('{myvariable}','myfile.ini','variables','myvariable')

Here's an example of reloading it

INIREAD('myvariable','myfile.ini','variables','myvariable')


Posted on: 2:55 am on September 21, 2001

Go to Active Discussion Thread

Participate in Current/New Discussions

List All Archived Forums



Copyright © 2000-2015, Answers 2000 Limited.

With any business, it is up to the individual owner of said business to ensure the success of the business. You may make more or less than any sample figures or results that might be quoted on our web sites or other publications. All business involves risk, and many businesses do not succeed. Further, Answers 2000 Limited does NOT represent that any particular individual or business is typical, or that any results or experiences achieved by any particular individual/business is necessarily typical.

Disclosure: Our company's websites' content (including this website's content) includes advertisements for our own company's websites, products, and services, and for other organization's websites, products, and services. In the case of links to other organization's websites, our company may receive a payment, (1) if you purchase products or services, or (2) if you sign-up for third party offers, after following links from this website. Unless specifically otherwise stated, information about other organization's products and services, is based on information provided by that organization, the product/service vendor, and/or publicly available information - and should not be taken to mean that we have used the product/service in question. Additionally, our company's websites contain some adverts which we are paid to display, but whose content is not selected by us, such as Google AdSense ads. For more detailed information, please see Advertising/Endorsements Disclosures

Our sites use cookies, some of which may already be set on your computer. Use of our site constitutes consent for this. For details, please see Privacy.

Contact Us    About and Terms Of Use    Privacy    Advertising/Endorsements Disclosures