Jump to content

Recommended Posts

Posted

  On 5/25/2010 at 8:26 PM, 'Jos said:

What seems to be the problem when you tried?

I tried

Filewrite($file,"{enter}")

But when I open the $file,, I dont see a new line but get {enter} as text data..

Posted (edited)

If you use Chr(10) instead of {enter}, it should work.

Filewrite($file,Chr(10))

Chr() allows you to send ascii characters, and 10 is the ascii for a line feed.

Interesting note: We both joined the same year, almost 2 months apart, and have the same number of posts at this time :mellow:

Edited by Affe

[center][/center]

  • Developers
Posted

  On 5/25/2010 at 8:28 PM, 'AvidLearner said:

I tried

Filewrite($file,"{enter}")

But when I open the $file,, I dont see a new line but get {enter} as text data..

Filewrite($file,@crlf)

-or-

Filewriteline($file,"")

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.
  :)

Posted (edited)

  On 5/25/2010 at 8:29 PM, 'Affe said:

If you use Chr(10) instead of {enter}, it should work.

Filewrite($file,Chr(10))

Chr() allows you to send ascii characters, and 10 is the ascii for a line feed.

Interesting note: We both joined the same year, almost 2 months apart, and have the same number of posts at this time :P

Tats cool :mellow:

Thanks fr the support,,, but

FileWrite($sFile,Chr(10))

dint work fr me...

Edited by AvidLearner
Posted

  On 5/25/2010 at 8:32 PM, 'AvidLearner said:

Thanks fr the support,,, but

FileWrite($sFile,Chr(10))

dint work fr me...

Use Jos' example. Didn't think of a simple @CRLF.

FileWrite($sFile,@CRLF)

[center][/center]

  • Developers
Posted

  On 5/25/2010 at 8:32 PM, 'AvidLearner said:

Tats cool :mellow:

Thanks fr the support,,, but

FileWrite($sFile,Chr(10))

dint work fr me...

this is not really the standard for Windows files as they use CR+LF.....

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.
  :)

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
  • Recently Browsing   0 members

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