garylyb
01-29-2006, 10:49 AM
I'm downloading a small text file from a unix host, and the new lines never get converted to cr/lf.
Here's the relevant code, looks to me like it should work:
strLocalFileName = SessionVar.Expand("%TempFolder%\\temp.txt");
strRemoteFileName = "http://www.great-stocks.info/install/currentFiles.txt";
HTTP.Download(strRemoteFileName, strLocalFileName, MODE_TEXT, 20, 80, nil, nil, fcnDownloadCallback);
error = Application.GetLastError();
.
.
.
Is something else wrong?
Thanks
Gary
Here's the relevant code, looks to me like it should work:
strLocalFileName = SessionVar.Expand("%TempFolder%\\temp.txt");
strRemoteFileName = "http://www.great-stocks.info/install/currentFiles.txt";
HTTP.Download(strRemoteFileName, strLocalFileName, MODE_TEXT, 20, 80, nil, nil, fcnDownloadCallback);
error = Application.GetLastError();
.
.
.
Is something else wrong?
Thanks
Gary