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 5 years, 11 months ago.
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?
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?
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.
Tested this. It comes out that it is a bug: http://support.e2e.ch/browse/RUN-1579
You must be logged in to reply to this topic.