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

Search This thread

SimonSP

Member
May 26, 2007
39
3
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