Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to read the contents of a file present in local file system

Former Member
0 Kudos
47

Hi ABAP Experts,

I want to read the file contents of a file in the local system. I want to read it stream based i.e if the file is if 100kb in size, i want to read the first 100bytes at one time, next 50 kb after, and remaining some other time. Is this possible. I know that with GUI_UPLOAD i can get the total contents into a xstring.

But how to resolve the following i am not sure. Can you please help.

Thanks & Regards,

Vinay.

1 REPLY 1

andreas_mann3
Active Contributor
0 Kudos
30

Hi,

transfer file to your application server and use:

open dataset file ... AT POSITION p .

regards Andreas