Jump to content
Sign in to follow this  
rmse17

How to add strings?

Recommended Posts

rmse17

I want to output a line that would list the date, time, and some other info for a log file.

I tried the folloing

FileWriteLine($ofile, "@MON-@MDAY-@YEAR @HOUR:@MIN:@SEC other stuff")

But that just printed out exactly that line without substituting numbers for the tokens. so I tried this

FileWriteLine($ofile, @MON+"-"+@MDAY+"-"+@YEAR+" "+@HOUR+":"+@MIN+":"+@SEC+" other stuff")

But that cause an output of a single int

I tried looking in help file and the faq, but didnt see anything either.

Thanks!

RMSe17

Edited by rmse17

Share this post


Link to post
Share on other sites
rmse17

Never mind, I searched for concatenate and found & :mellow:

Share this post


Link to post
Share on other sites
Xenobiologist

Might want to have a look at _FileWriteLog


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×