File read

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

File read

shelane
I'm having difficulty with code I had working in Lasso 7 doing nothing at
all in 8.

IF: File_Exists: 'RED_SCHOLAR_APPLICANT_DATA.csv';
 var: 'delimiter' = '","';
 var: 'linecount' = (File_GetLineCount: 'RED_SCHOLAR_APPLICANT_DATA.csv',
-FileEndofLine='\r"A0');

 'linecount=' $linecount '<br>';
/IF;

This returns->linecount=0

Same if I do this:
IF: File_Exists: 'RED_SCHOLAR_APPLICANT_DATA.csv';
 var: 'delimiter' = '","';
 var: 'linecount' = (File_GetLineCount: 'RED_SCHOLAR_APPLICANT_DATA.csv');
 'linecount=' $linecount '<br>';
/IF;


I doubled checked permissions, and that's all good.  Just not reading the
file.



--
------------------------------
Lasso Support: http://support.omnipilot.com/
Search the list archives: http://www.listsearch.com/lassotalk.lasso
Manage your list subscription:  
http://www.listsearch.com/lassotalk.lasso?manage
Reply | Threaded
Open this post in threaded view
|

Re: File read

shelane
Silly me.  Those pesky little things again.  '.csv' hadn't been added to
file extensions.  Once added, it worked fine.


On 6/7/05 2:17 PM, "Shelane Enos" <[hidden email]> wrote:

> I'm having difficulty with code I had working in Lasso 7 doing nothing at
> all in 8.
>
> IF: File_Exists: 'RED_SCHOLAR_APPLICANT_DATA.csv';
>  var: 'delimiter' = '","';
>  var: 'linecount' = (File_GetLineCount: 'RED_SCHOLAR_APPLICANT_DATA.csv',
> -FileEndofLine='\r"A0');
>
>  'linecount=' $linecount '<br>';
> /IF;
>
> This returns->linecount=0
>
> Same if I do this:
> IF: File_Exists: 'RED_SCHOLAR_APPLICANT_DATA.csv';
>  var: 'delimiter' = '","';
>  var: 'linecount' = (File_GetLineCount: 'RED_SCHOLAR_APPLICANT_DATA.csv');
>  'linecount=' $linecount '<br>';
> /IF;
>
>
> I doubled checked permissions, and that's all good.  Just not reading the
> file.
>
>



--
------------------------------
Lasso Support: http://support.omnipilot.com/
Search the list archives: http://www.listsearch.com/lassotalk.lasso
Manage your list subscription:  
http://www.listsearch.com/lassotalk.lasso?manage