| To: | REALbasic NUG <realbasic-nug at lists dot realsoftware dot com> |
|---|---|
| Subject: | Re: Reading special Unix files in RB, like /dev/random |
| From: | Norman Palardy <npalardy at great-white-software dot com> |
| Date: | Mon, 28 Apr 2008 10:38:10 -0600 |
| Authentication-results: | mx.google.com; spf=pass (google.com: domain of realbasic-nug-bounces at lists dot realsoftware dot com designates 66.116.103.65 as permitted sender) smtp dot mail=realbasic-nug-bounces at lists dot realsoftware dot com |
| Delivered-to: | listarchive at realsoftware dot com |
| Delivered-to: | realbasic-nug at lists dot realsoftware dot com |
| References: | <29216C79-07B0-43F8-8384-827116F758C7 at elfdata dot com> |
On 28-Apr-08, at 10:12 AM, Theodore H. Smith wrote:
>
> Can RB read special unix files? Like /dev/random
>
> Did anyone ever have a need to do this?
>
> Just wondering...
>
> for what it's worth, you can read special unix files in RB
> nowadays, using my ElfData plugin.
Yes you can
Charles documented it in Chapter 12 of his book some time ago
However, a quick test using a folderitem in RB code does not seem to
be able to get access to /dev/random or /dev/urandom
dim f as folderItem
f = GetFolderItem("/dev/urandom", FolderItem.PathTypeShell)
if f is nil then
msgbox "f is nil"
return
end if
dim ts as TextInputStream = f.OpenAsTextFile
dim s as string = ts.ReadLine
break
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: how to store mp3 files on realSQLdatabases, Robert Lawrence |
|---|---|
| Next by Date: | Re: how to store mp3 files on realSQLdatabases, Norman Palardy |
| Previous by Thread: | Re: Reading special Unix files in RB, like /dev/random, Charles Yeomans |
| Next by Thread: | Re: Reading special Unix files in RB, like /dev/random, Theodore H. Smith |
| Indexes: | [Date] [Thread] [Top] [All Lists] |