Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Paul <nospam@needed.com> |
|---|---|
| Newsgroups | alt.computer |
| Subject | Re: javascript is so..... |
| Date | 2016-07-05 16:47 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <nlh6dc$gf$1@dont-email.me> (permalink) |
| References | <tcUez.2381$u64.948@fx09.iad> |
Robert Baer wrote:
> ..impossibly opaque.
> There is a document open function/process/command/method [do not give
> a snap about the incomprehensible terminologies - care only about WHAT I
> CAN DO with it].
> Almost zero info as to what eXactly (yes, X-rated) can be opened; fur
> [i am a baer, after all] eggzample, i would like to open a file to READ it.
> Ideally a function, READ file line by line in a little test loop.
> If line starts "Subject:" (no quotes), i know following info is an
> e-mail subject and i want to use the subject string to be compared with
> var Subj[] and a count that started at zero is incremented if a match.
> Next line starts "From:" (no quotes), has optional name _usually_ in
> quotes and to be compared with var SendName[] where count is incremented
> on a match; mail URL to be compared with var Address[] where count is
> incremented on a match.
> All following lines to be compared with var EBody[] where count is
> incremented on each match (if only one match allowed, that is acceptable)
> Function to be used on incoming e-mail file.
> I use count to issue various levels of warnings, as well as APPEND the
> Subject, From, and Date lines to a log file.
> I have a pretty good list in that log file, and have gleaned the match
> criteria for those arrays.
>
> So, in short, 1) how do open a SPECIFIC file, 2) how do i sequentially
> READ that file, 3) how do i know when i get to the end of the file so
> that the procedure does not crash, but gracefully close?
Why not do a search on
Javascript file I/O
and see what pops up ?
Example:
http://www.html5rocks.com/en/tutorials/file/dndfiles/
Paul
Back to alt.computer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
javascript is so..... Robert Baer <robertbaer@localnet.com> - 2016-07-05 11:50 -0800
Re: javascript is so..... Paul <nospam@needed.com> - 2016-07-05 16:47 -0400
Re: javascript is so..... Robert Baer <robertbaer@localnet.com> - 2016-07-05 21:11 -0800
csiph-web