Reading/importing .txt attachment with LS?

I am setting up a data file transfer between 2 database applications - the remote application being a non-domino database. The data file arrives as a pipe delimited flat file .txt attachment in an email based on a schedule of, for the moment, lets say twice a day.

My thoughts are that the email will be delivered to a database, an LS agent will run on the “when new mail arrives” event, it will read the .txt file attachment, parse the data and save it to fields either on existing documents or create new documents in the database.

Firstly is it possible to read a .txt file in the body of an email using LS without detaching the file to the filesystem?

If so any hints on how its done? If not any suggestions?

I will also have to do the same in reverse - ie. generate a .txt file from document fields and email it to an address set up on a schedule.

Subject: Reading/importing .txt attachment with LS?

You can’t directly access attachments via LS without storing them somewhere on the filesystem first.Once stored, you can use the NotesStream class or the Open# statements from LS to read/write…

Thomas - IBM

Subject: Reading/importing .txt attachment with LS?

Hi jason,

You can use NotesStream classes for that . and why donot u detach and read from file and make document and kill from drive. Who knows u had detaching or not . Just my view.

Rishi