Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Q] Tasker - remove CR from EOF when writing a variable to a file

OP SimonSP

25th June 2014, 01:34 PM   |  #1  
OP Junior Member
Thanks Meter: 0
 
7 posts
Join Date:Joined: May 2007
Hi,

Im having some troubble with Tasker when writing the contents of a variable to a file.

The thing is that Tasker add a carriage return to the end of the file and when I later read the file the conditions I use to check against the contents is never true because of the carriage return.

The contents of the file should be 1 or -1 (a toggle)

How can I remove the carriage return so I can use "if %var=1" do something

Thanks in advance,
Simon
25th June 2014, 02:20 PM   |  #2  
OP Junior Member
Thanks Meter: 0
 
7 posts
Join Date:Joined: May 2007
Hi,

Seems to have it working now.

Did "%var=%var * 1" after I read the file.

Simon
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes