How to read file content using API?

I have some application, running Mikrotik API commands to export configuration to the .rsc file and save it as a file on the computer.
I have all steps done, valid .rsc file is created, but i cannot get file content to the computer. It is strange, because i have remembered this specific command was working around two years ago.
I was using command:

/file/print
=.proplist=contents
?name=filename.rsc

Command

/file/print
=from=%s.rsc
=detail=

is also not working…

How to get file content using API?
I see many people asking the same question but i did not see working suggestion…

You will not get file content if file size is larger than 4KB.

But it was definitely working for larger files, i have tried with export file (.rsc)…

Ok, how can I get file content if size is smaller than 4KB?

<<< /file/get
<<< =.id=*D034A
<<< =.proplist=contents
<<<

Ok, this one is working (for small files), thank you.
The way how i did it before:

/file/print
=.proplist=contents
?name=filename.ext

is also working (only for small files).

Still question is how to get >4Kb file content, using API?

You can’t directly with api. Download file via ftp and then read content locally.

Bad.. :frowning:.

Is this bug? or feature? It was working with some older versions of firmware. Are there any hope it may work in future versions?

More than one year later and the bug it’s there yet.

I’m tryting to get the result of the /export command and it seems it’s affected by the same limitation of the API.