How to push the .txt file to the emulator using Android Studio.
You can use the
Terminal to pass the file From Desktop to Emulator.
adb push <file-source-local> <destination-path-remote>
You can also copy file from emulator to Desktop
adb pull <file-source-remote> <destination-path>
How ever you can also use
Android Device Monitor to access files. Click on the Android Icon which can be found in the toolbar itself.It'll take few seconds to load, Once it's loaded you can see a tab named
File Explorer.now you could pull/push files from there.