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:

Using FILEREAD() on remote directories


 
Alaska Hi Sunil -

 Can we use FILEREAD() to access and read files that reside in other directories besides the local one?  When trying to reference these files, I get an error message if I try to use paths or variables.

 Any tips?  thanks!


Posted on: 10:32 am on October 11, 2002
EBookCompiler mmm... I'm pretty sure you can

Have you checked the path your are passing is correct?

What is the statement that you're using?


Posted on: 1:00 am on October 13, 2002
Alaska ahhh, life is better after a reboot.  Honest, I was getting a total stonewall - I kept getting an error message telling me the filename argument would only accept chars or letters.  I guess my environment was hit with a cosmic ray or something...

 I guess that's what happens in the wee hours of the morning.

 Now that it's working, I find that specifying the exact path works fine.  And, the really nifty thing with FILEREAD() is that if you don't specify a specific path, it puts it into a TEMP subdirectory, in a long obscure path.

That makes it harder to find, which is helpful for this project. Just for the record, we used:

SET('bok',0)
FILEREAD('bok','struser','info.as')

and/or

FILEREAD('bok','struser','c:\info.as')

... they both work.  

- thanks for the quick response, Sunil, and sorry for the false alarm!


Posted on: 3:26 am on October 13, 2002
Alaska Ok, I've two more questions:

1)  How does one insert line breaks and carriage returns into the text being written while doing a FILEWRITE()?  and,

2)  Can I store and retrieve multiple chunks of text in one file with FILEREAD() and FILEWRITE()?

 My solution was to write a bunch of variables to a single, long line in a .js file.  It works, but looks a little goofy.  Is there a better way?

thanks!


Posted on: 6:31 am on October 14, 2002
Alaska Ok, once again I'm answering my own question, 'cause I didn't search ebookcode.com thoroughly.

It mentions using the {linefeed} to do just that.  a linefeed.   Cool - now I've got pretty formatting in my .js file!

Looking at the example, I realize I that if I want to append the file, I can read it in, and add more text to it using JavaScript, and rewrite it again using Activ.  

It's a bit clunky, but sometimes clunky works.  And, I'm always looking for better ways if anyone has one...

So, I now have a demo of a form that writes a file, and reads it back into either a new form window for editing or a mail-merge-type letter.  I did it for a fellow ebooker on this forum (and myself), and can email it to whosoever cares upon request.


Posted on: 10:27 pm on October 14, 2002

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