Xojo Conferences
XDCMay2019MiamiUSA

Reading *CSV Files versus *.Txt Files (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: Detecting *MY* USB Flash Drives
Next thread: Overriding generic object call using Introspection?


FolderItem--IsReadable   -   Claude Stone
  Reading *CSV Files versus *.Txt Files   -   Claude Stone
    Re: Reading *CSV Files versus *.Txt Files   -   Fargo Holiday
   Re: Reading *CSV Files versus *.Txt Files   -   Harrie Westphal
   Overriding generic object call using Introspection?   -   Michael Diehr

Reading *CSV Files versus *.Txt Files
Date: 02.07.08 04:59 (Tue, 01 Jul 2008 20:59:13 -0700)
From: Claude Stone
re: Rb2007r5 running either XP Pro or XP Home

Intermittently for some *.CSV files but SOLIDLY for other *CSV files
the item f.IsReadable = False, f.stream = Nil and the result is the
file is NOT READ.

Changing the file Suffix from *.CSV to *.Txt makes the file readable
for the ones checked.

Does any one out there have a clue as to why changing the file name
suffix effects how RB views the file as to its readability, and what
must I do to make RB view *.CSV files as readable consistently.

The files in question may be opened with Notepad, WordPad, Excel etc,
so the files are readable.

Thanks in advance for your assistance.

Claude Stone

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Reading *CSV Files versus *.Txt Files
Date: 02.07.08 05:07 (Tue, 01 Jul 2008 21:07:10 -0700)
From: Fargo Holiday
If you rename the extension then name it back does the behavior revert?
Are the CSV files generated by an application, or just typed up by hand?
If one, have you tried the other? Have you examined the acls on the file
before and after renaming?

Just some thoughts.

Best of luck,
Fargo

Claude Stone wrote:
> re: Rb2007r5 running either XP Pro or XP Home
>
> Intermittently for some *.CSV files but SOLIDLY for other *CSV files the
> item f.IsReadable = False, f.stream = Nil and the result is the file is
> NOT READ.
>
> Changing the file Suffix from *.CSV to *.Txt makes the file readable
> for the ones checked.
>
> Does any one out there have a clue as to why changing the file name
> suffix effects how RB views the file as to its readability, and what
> must I do to make RB view *.CSV files as readable consistently.
>
> The files in question may be opened with Notepad, WordPad, Excel etc, so
> the files are readable.
>
> Thanks in advance for your assistance.
>
> Claude Stone

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: Reading *CSV Files versus *.Txt Files
Date: 02.07.08 16:59 (Wed, 2 Jul 2008 10:59:15 -0500)
From: Harrie Westphal

On Jul 1, 2008, at 10:59 PM, Claude Stone wrote:

> Intermittently for some *.CSV files but SOLIDLY for other *CSV
> files the item f.IsReadable = False, f.stream = Nil and the result
> is the file is NOT READ.
>
> Changing the file Suffix from *.CSV to *.Txt makes the file readable
> for the ones checked.
>
> Does any one out there have a clue as to why changing the file name
> suffix effects how RB views the file as to its readability, and
> what must I do to make RB view *.CSV files as readable consistently.

Are you sure the files are unreadable or are you simply checking if
IsReadable is True?

Right from the Language Reference manual:

IsReadable is True if you have permissions to read from the
FolderItem. It is not a guarantee that the read will succeed. If you
want to read from a file, you should simply attempt to do so. If the
read operation can work, it will work.

So, from the above the file may very well be readable and the flag is
simply in error. Just for the heck of it, actually try opening
the .CSV file that gives you IsReadableúlse and see. Not sure why
this flag is even there if it can't be trusted but that is certainly
the way it sounds from the way I read the above statement.

=wD A Mac addict in Tennessee =e

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>