Sign in to follow this  
Followers 0
guillaume2k3

FileWriteLine

5 posts in this topic

#1 ·  Posted (edited)

Hi everyone :P

This is my first post on this board..so first of all, thanks to the AIT's dev team ! You guys have done a great job :()

Here's my problem : I use AIT to generate a .reg file . I have a problem each time I try to insert a blank line, AIT returns the keyword "FALSE" into my .reg text file whereas I'm supposed to add a simple blank line... Is there anything I can do to force AIT to add a blank line ?

I tried a

FileWriteLine($handle,"")

or a

FileWriteLine($handle," ")

but AIT doesn't stop returning the "FALSE" keyword instead of a real blank line....

Thanks.

Edited by guillaume2k3

Share this post


Link to post
Share on other sites



Hi everyone :P

This is my first post on this board..so first of all, thanks to the AIT's dev team ! You guys have done a great job :()

Here's my problem : I use AIT to generate a .reg file . I have a problem each time I try to insert a blank line, AIT returns the keyword "FALSE" into my .reg text file whereas I'm supposed to add a simple blank line... Is there anything I can do to force AIT to add a blank line ?

I tried a

FileWriteLine($handle,"")

or a

FileWriteLine($handle," ")

but AIT doesn't stop returning the "FALSE" keyword instead of a real blank line....

Thanks.

Use _FileWriteToLine(), is more simple.

When the words fail... music speaks

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

try

FileWriteLine($handle,@CRLF)

edit

LOL Andreik... beat me to it!!

Edited by bluerein

Share this post


Link to post
Share on other sites

#include <File.au3>
$FILE = FileOpen($PATH,0)  ;Path for your file
For $INDEX = 2 To _FileCountLines($PATH) Step 2
    _FileWriteToLine($PATH,$INDEX," ",0)
Next
FileClose($PATH)


When the words fail... music speaks

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