Text files from web servers--Say it ain't so!

Bill Vlahos bvlahos at mac.com
Fri Jan 6 00:00:50 EST 2006


Yep. That's what I do. It works great.

Bill

On Jan 5, 2006, at 6:04 PM, Devin Asay wrote:

> Sarah gets the prize. Once I calmed down and looked closer at the file 
> I realized that all of the line endings were cr's (xtalk logical 
> lines, produced on a Mac.) If I take the same files and save them from 
> BBedit as unix or DOS format, the line breaks are preserved. So I just 
> need to make sure I use a LF or CRLF as a line delimiter.
>
> Thanks for the help.
>
> Devin
>
> On Jan 5, 2006, at 5:42 PM, Sarah Reichelt wrote:
>
>> On 1/6/06, Devin Asay <devin_asay at byu.edu> wrote:
>>> I've spent the better part of two days coding a utility designed to
>>> pull log files (plain ascii text) off a web server, then parse the
>>> contents for a report. After initially testing the concept with local
>>> files, today I realized that when you use the 'get URL "http://
>>> myserver.com/myfile.log"' form it STRIPS ALL RETURNS out of the file!
>>> I must have known this before, but it slipped my deteriorating mind.
>>> Before I recode my utility, can someone tell me, is it possible to
>>> pull a text file off a web server using the http protocol and retain
>>> the return characters?
>>
>> What new line character does the log file use? it could be
>> numToChar(10), numToChar(13) or CRLF (both together). Try getting the
>> data and then checking for these three characters and replacing with
>> CR.
>>
>> Cheers,
>> Sarah
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your 
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>
> Devin Asay
> Humanities Technology and Research Support Center
> Brigham Young University
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list