Sign in to follow this  
Followers 0
Shyke

FileWrite Question

5 posts in this topic

When using FileWrite how do I get it to write a word, varible then more words?

I have this and it isn't working:

FileWrite ("test.txt", "number $num is today's number!")

I know that, that doesn't work... but why?

Share this post


Link to post
Share on other sites



Alright, thank-you very much!

Share this post


Link to post
Share on other sites

I know that, that doesn't work... but why?

variable expansion within strings is not implemented.

Cheers

Kurt


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

variable expansion within strings is not implemented.

Cheers

Kurt

Are you sure ??

ExpandVarStrings: Changes how literal strings and variable/macro ($ and @) symbols are interpreted. By default strings are treated literally, this option allows you to use variables and macros inside strings, e.g., "The value of var1 is $var1$".

1 = expand variables (when in this mode and you want to use a literal $ or @ then double it up: "This is a single dollar $$ sign".

0 = do not expand variables (default)


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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  
Followers 0