hi,
Dim FichRef As FolderItem
Dim fileStream As TextInputStream
Dim thePath, uneLigne As String
thePath = "...whatever..."
FichRef = New FolderItem(thePath)
' test here
fileStream = FichRef.OpenAsTextFile()
uneLigne = fileStream.ReadLine
fileStream.Close
bye <- do not insert this line :)
jjc
--- Ben Scofield <ben at scotech dot us> wrote:
> Hey all! Thanks for the quick responses. Those were
> all somewhat what I was looking for, BUT, I forgot
> to mention that I found plenty of examples for
> opening a file when it was selected from a dialogue
> box. What I need to do is loop through a given
> folder (path specified as a windows system variable)
> and open the files in that path. There won't be a
> dialogue box to work with. That's why most of the
> examples I've found won't work because I have no
> dialogue box and the subsequent reading of the files
> were all related to file picking dialog boxes. So in
> short, how about an example of reading a file line
> by line that there has been no user interaction to
> open, all I have is a path?
>
> Thanks again!
>
>
>
> Ben Scofield
> Software Consultant
> ScoTech
> www.scotech.us
> (866) SCO-2FIX
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|