I think I read before that CF has a issue handling large files.

Any thoughts?

Tap Java file handling code.  I've done this for allowing CF to read large 
files, so I would suspect it would help in writing them.

Some random samples of java random access file code.

variables.randomAccessFile = createObject("java", "java.io.RandomAccessFile");
variables.randomAccessFile.init(variables.file,"r");

                <cfscript>
                var outputStr = "";
                var line = "";

                try 
                {
                        do 
                        {
                                line = variables.randomAccessFile.readLine();
                                outputStr = outputStr & format(line);
                        } while (true);
                } 
                catch (coldfusion.runtime.UndefinedVariableException e) 
                {
                // this indicates end of file, ok to ignore error
                outputStr = outputStr & chr(13) & chr(10) & "-----EOF-----";
                variables.EOF = true;
                }
                </cfscript>

--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

---------
| 1 |   |
---------  Binary Soduko
|   |   |
---------
 
"C code. C code run. Run code run. Please!"
- Cynthia Dunning

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message. 




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265007
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to