Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 723

Read contents from a file

$
0
0
Hi all,

I'm trying to put a script together that reads the contents for a file. (i already tried LUA but didn't get it working that way either) below is my script.
*content of last_number.txt is: 123,456.78 and the file is UTF8
*content of last_update.txt is: 2025-04-01 14:09:54 and the file is UTF8

Where did i go wrong? help would be apreciated

Code:

[Rainmeter]Update=1000[Variables]NumberFile=C:\\rainmeterdata\\last_number.txtLastUpdateFile=C:\\rainmeterdata\\last_update.txt[MeasureNumber]Measure=FileFile=#NumberFile#UpdateDivider=1DynamicVariables=1[MeasureLastUpdate]Measure=FileFile=#LastUpdateFile#UpdateDivider=1DynamicVariables=1[meterNumber]Meter=StringMeterStyle=styleLeftTextX=10Y=60W=190H=14Text=Latest: [MeasureNumber]DynamicVariables=1[meterLastUpdate]Meter=StringMeterStyle=styleLeftTextX=10Y=80W=190H=14Text=Laatste Update: [MeasureLastUpdate]DynamicVariables=1

Statistics: Posted by Macguyver1976 — Today, 1:41 pm — Replies 1 — Views 47



Viewing all articles
Browse latest Browse all 723

Trending Articles