Monty Posted September 21, 2009 Share Posted September 21, 2009 Is it possible to, or does anyone know how to assign the content of a really long document as a variable? Document could contain lets say 2000 words. Link to comment Share on other sites More sharing options...
Hawkwing Posted September 21, 2009 Share Posted September 21, 2009 $var = FileRead("path")? The Wheel of Time turns, and Ages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Age that gave it birth comes again. Link to comment Share on other sites More sharing options...
Adamrv1 Posted September 21, 2009 Share Posted September 21, 2009 the max length of a string is 2147483647 so, assuming the previous statement works, there should be no problem. Link to comment Share on other sites More sharing options...
Monty Posted September 21, 2009 Author Share Posted September 21, 2009 Thank you for replying all, but I was after something else. My mistake that I did not phrase the question correctly...sorry. Now what I am actually after is storing a long file in a script, so at the press of a button, it will create the file or put it on clipboard, or something. I know I can do... $var = "bla bla bla" & _ "bla bla bla" & _ and so on but the document are way to long (but under 2147483647) and frequently edited. Link to comment Share on other sites More sharing options...
Hawkwing Posted September 21, 2009 Share Posted September 21, 2009 If you want something to be "stored" in a script so that it's still there after the script is closed, you would have to create a file with the data to be stored and fileread that into a variable when the script starts. The Wheel of Time turns, and Ages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Age that gave it birth comes again. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now