bildwelt
E2E FORUM
E2E Bridge E2E Commerce

read and readLine of the same file in one synchronous call

E2E Forum Modeling & Development read and readLine of the same file in one synchronous call

This topic contains 3 replies, has 3 voices, and was last updated by  Peter Jungblut 4 years, 6 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #495

    Jürgen
    Moderator

    I used the file adapter to read a file. Then in the next action I read the same file with readLine and got an error.

    I assume this is not possible because the file is not “closed” from the first “read”. Is this assumption correct or is it a bug?

    #496

    Alfred
    Moderator

    For a read the file is opened, read and then immediately closed.

    For a readLine the file stays open till the session is finished or you explicitly close the file.

    But also doing first a readLine and then read should work because opening multiple file handles for reading should work.

    What error do you get?
    Do you also write anywhere to the file?

    #497

    Jürgen
    Moderator

    It was at cusomers side and I was in hurry, so I choose another solution. I will try to get the model and run it at our environment to get the error message. I write to a file in the same model but with a different one.

    #506

    Peter Jungblut
    Moderator

    Tested this. It comes out that it is a bug: http://support.e2e.ch/browse/RUN-1579

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.