Jump to content

FileWrite () adding speech marks ""


Mat
 Share

Recommended Posts

I want to write a line to a file that includes quote marks.

how should it be done?

I want to write something along the lines of:

Filewrite ("="text and stuff" " & @CRLF & "="more text and stuff" ", 1)

Question no 2

Whats the difference between filewrite and filewriteline

I presume Filewrite accepts @CRLF ????

MDiesel

Edited by mdiesel
Link to comment
Share on other sites

What I should have said is:

What If I dont want to make lots of variables?

I am probably going to end up using 30+ variables trying to do this.

could I... set $SM = " " "

Then I could just use the one variable over and over again.

Filewrite ("=" & $SM & "text and stuff" & $SM & " & @CRLF & "=" & $SM & "more text and stuff" & $SM, 1)

lol

MDiesel

Link to comment
Share on other sites

  • Developers

FileWrite is to write anything to a file. FileWriteLine can only add one line to the end of a file.

FileWriteLine is a function for those that are lazy.

:P

I would have said: They are exactly the same except FileWriteLine() adds an @CRLF at the end of the written string.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

I would have said: They are exactly the same except FileWriteLine() adds an @CRLF at the end of the written string.

But I think that would be entirely correct because of when dealing with binary data. The help file says that FileWriteLine does not accept null characters. I don't see a purpose for FileWriteLine when we already had FileWrite, anyway.

And sometimes I feel like I am blindly defending what is in the help file...

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...