Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,732,778 Members 52,161 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
SimonSP
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 7
Join Date: May 2007
Default [Q] Tasker - remove CR from EOF when writing a variable to a file

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
 
SimonSP
Old
#2  
Junior Member - OP
Thanks Meter 0
Posts: 7
Join Date: May 2007
Hi,

Seems to have it working now.

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

Simon
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes