Text File read

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
Rafi4
Posts: 281
Joined: 01 Dec 2017 05:23

Text File read

Post by Rafi4 » 11 Jun 2018 14:16

Hi
I want to create a flow to read text file using "message dialog"& "start Activity".how can I create?
I am only reading text file which I am created now. But I want to read text files which were previously saved in internal memory or sd card.


http://automagic4android.com/flow.php?i ... 6ef4b6df26
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1

User avatar
digitalstone
Posts: 342
Joined: 21 Oct 2017 12:36
Location: The Netherlands

Re: Text File read

Post by digitalstone » 11 Jun 2018 17:30

Place action "Init Variable Text File":
At field "File": browse to your desired text file.

Place action "Message Dialog":
At field "Message" type: {file_text}

This should do it.
Phone: LG Nexus 5X (rooted vanilla Android 7.1.2)

User avatar
Rafi4
Posts: 281
Joined: 01 Dec 2017 05:23

Re: Text File read

Post by Rafi4 » 12 Jun 2018 12:13

Hi digitalstone
action "Init Variable Text File" is for one file only. But I want to pick file using start Activity. And then I want to read text file using "message dialog". I think This is process to read. Only i want to know what fields are mandatory in "start Activity" action. Please fill and post.
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1

User avatar
digitalstone
Posts: 342
Joined: 21 Oct 2017 12:36
Location: The Netherlands

Re: Text File read

Post by digitalstone » 12 Jun 2018 13:22

One result that i've got when making use of the "Example" button is "Pick file" from that list.

At the "Data MIME Type" field, you can further specify what you would like for file-type to be filtered.
Only text files for example: *.txt
Instead of all file types to be shown: *.*
Phone: LG Nexus 5X (rooted vanilla Android 7.1.2)

Post Reply