Hi,
One of the new things I find interesting in CF 9 (coming from CF 5) is the
fileRead and the FileReadLine functions.
I need to periodically (say once every hour) read a daily log file and get what
was added to it since last time.
Beside counting the number of lines and looping on that
I need to periodically (say once every hour) read a daily log file and get
what was added to it since last time.
Beside counting the number of lines and looping on that count to read all
lines again until I find the new ones,
is there a more efficient way I can say read from here and give
No, CF isn't that low-level. But you could do this in Java, then call
your Java class from CF.
I've found fileSeek () and FileSkipBytes (), that might do the trick.
~|
Order the Adobe Coldfusion Anthology now!
No, CF isn't that low-level. But you could do this in Java, then call
your Java class from CF.
I've found fileSeek () and FileSkipBytes (), that might do the trick.
Well then, I was wrong. CF is that low-level in this case!
Oh CF, is there anything you can't do?
Dave Watts, CTO, Fig
nope! :)
Oh CF, is there anything you can't do?
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive:
On 10/1/2010 8:32 AM, Dave Watts wrote:
No, CF isn't that low-level. But you could do this in Java, then call
your Java class from CF.
I've found fileSeek () and FileSkipBytes (), that might do the trick.
Well then, I was wrong. CF is that low-level in this case!
Oh CF, is there
Is it not fun when one learns something new about something one has
enjoyed using for so long!
Yes, it is! And having been immersed recently in the verbose,
nonfunctional cesspool of pure Java web development, I find myself
missing CF a lot for those projects.
Dave Watts, CTO, Fig Leaf
nope! :)
Oh CF, is there anything you can't do?
what about make coffee, and bring my slippers and the morning paper. If it
could do that CF would truly rock.
~|
Order the Adobe Coldfusion Anthology now!
On Fri, Oct 1, 2010 at 10:14 AM, Larry Lyons larrycly...@gmail.com wrote:
nope! :)
Oh CF, is there anything you can't do?
what about make coffee, and bring my slippers and the morning paper. If it
could do that CF would truly rock.
Have you checked Riaforge?
--
Charlie Griefer
cf_Fido
On Fri, Oct 1, 2010 at 1:14 PM, Larry Lyons larrycly...@gmail.com wrote:
nope! :)
Oh CF, is there anything you can't do?
what about make coffee, and bring my slippers and the morning paper. If it
could do that CF would truly rock.
what about make coffee, and bring my slippers and the morning paper. If it
could do that CF would truly rock.
I don't know if CF can do that. Java can do that, but if you're not
extremely careful, you'll end up drinking the outflow from the toilet,
getting your feet cut off and having the
Nice to see some people still have a sense of humor!
Rick Sanders
Webenergy
www.webenergy.ca
-Original Message-
From: Dave Watts [mailto:dwa...@figleaf.com]
Sent: Friday, October 01, 2010 2:34 PM
To: cf-talk
Subject: Re: Reading text files
what about make coffee, and bring my
Unfortunately nothing there.
That said, I kind of figured out a way to do it. The lego NXT MindStorms robot
can be using Java. So you'd just have to build a few classes to handle the
tasks, then call them through CreateObject etc.
But hey it can't be that difficult, given what these high
Oh CF, is there anything you can't do?
Convince PHP devs that it's not a dead language?
~|
Order the Adobe Coldfusion Anthology now!
Oh CF, is there anything you can't do?
Convince PHP devs that it's not a dead language?
Why bother? I might as well convince buggy whip manufacturers to
invest in flying cars.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/
Fig Leaf Software is a
I've not used it on files as large as is under consideration here,
but I've had good luck with SQL7 Bulk Insert, both from Query
Analyzer and in a CF app. The following is an example of the
former:
BULK INSERT Victor
FROM 'D:\FR\FileResource\VictorJPGs\CSVs\June202000\4347003.csv'
WITH
(
I'm quite certain that is the tag I've tried -- but i'd better dbl check.
thanks
-Original Message-
From: lsellers [mailto:[EMAIL PROTECTED]]
Sent: Saturday, July 01, 2000 12:08 AM
To: [EMAIL PROTECTED]
Subject: RE: reading text files
yeah! --- that is exactly what we've had to do
I'm quite certain that is the tag I've tried -- but i'd better dbl check.
Just checking. I've never uploaded it the dev exchange (only to my own web
site), so
And also, if it's not working properly I could always fix it. ;-)
CFX_ReadLine is the one where it read in a text til it gets a
I have a rather large text file (145mb) that I need to read into a dB.
The part I'm having trouble with is the READING of the file part. I am
using a line by line tag from the dev site to read in say 1000 lines at a
time, but some times it bombs at line 500... then I'll run it again and it
I have a rather large text file (145mb) that I need to read into a dB.
The part I'm having trouble with is the READING of the file part. I am
using a line by line tag from the dev site to read in say 1000 lines at a
time, but some times it bombs at line 500... then I'll run it again and it
: [EMAIL PROTECTED]
Business URL: http://www.fusioneers.com
ICQ: 346566
--
-Original Message-
From: Jason Egan [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 30, 2000 1:10 PM
To: Cf-Talk
Subject: reading text files
I have
PROTECTED]
To: [EMAIL PROTECTED]
cc:(bcc: Diana Burns/US/UNIPHASE)
Subject: RE: reading text files
I ran into the same problem in the past with a 50 MB text file that I need
to import into SQL.
I tried making it a spreadsheet and importing to Access first, but it cuts
of at something like 65
heading for home . . . :)
Dan
-Original Message-
From: Jason Egan [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 30, 2000 3:01 PM
To: [EMAIL PROTECTED]
Subject: RE: reading text files
yeah! --- that is exactly what we've had to do in the past, but we need to
automate and streamline
23 matches
Mail list logo