# InStream.EOS() Method
> Version: _Available or changed with runtime version 1.0._
Indicates whether an input stream has reached End of Stream (EOS).
## Syntax
```al
IsEOS :=   InStream.EOS()
```
> NOTE
> This method can be invoked using property access syntax.
## Parameters
InStream
Type: instream-data-type
An instance of the instream-data-type data type.
## Return Value
IsEOS
Type: ../boolean/boolean-data-type
true if the stream has reached End of Stream; otherwise false.
## Remarks
If you are reading data from an external component, EOS can return false even though no more data is available. This may occur if you have not called Read first.
## Example
The following example opens the text file in a folder that is named MyFolder. The data in the text file is read into and input stream variable named StreamInTest. The InStream.EOS Method<../library> is used to determine whether the input stream has reached the end. If the stream has not reached the end, the stream is read into a text buffer, which indicates that the stream has not reached the end until the stream reaches the end. You must also create the following file 'c:\\MyFolder\\MyText.txt'.
```al
 var
    StreamInTest: InStream;
    FileTest: File;
    Buffer: Text;
begin
    FileTest.Open('c:\MyFolder\MyText.txt');
    FileTest.CreateInStream(StreamInTest);
    while not StreamInTest.EOS do begin
      StreamInTest.ReadText(Buffer);
      //Do some processing
      Message('Stream is still processing')
    end;
    Message('End of Stream');
end;
```
## Related information
instream-data-type
Get Started with AL<../../devenv-get-started>
Developing Extensions<../../devenv-dev-overview>

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/instream/instream-eos-method, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/instream/instream-eos-method/
