AzKay Posted November 28, 2006 Share Posted November 28, 2006 Any ideas? I know how to remove white spaces, etc. But how would you remove just the empty lines? eg: aaaaa aaaaa aaaaa The lines "between" that are empty. So it would end up being: aaaaa aaaaa aaaaa # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
Valuater Posted November 28, 2006 Share Posted November 28, 2006 (edited) maybe... #include <file.au3> Dim $aRecords, $file = "C:\test.txt" If Not _FileReadToArray($file,$aRecords) Then MsgBox(4096,"Error", " Error reading log to Array error:" & @error) Exit EndIf For $x = 1 to $aRecords[0] If $aRecords[$x] = "" Then ContinueLoop Msgbox(0,'Record:' & $x, $aRecords[$x]) Next 8) Edited November 28, 2006 by Valuater Link to comment Share on other sites More sharing options...
Smorg Posted November 28, 2006 Share Posted November 28, 2006 maybe http://www.autoitscript.com/autoit3/docs/f...ringStripCR.htmcopy ur whole doc to a big string. Link to comment Share on other sites More sharing options...
AzKay Posted November 28, 2006 Author Share Posted November 28, 2006 I dont want it in one big string. @Valuater || Thanks. # MY LOVE FOR YOU... IS LIKE A TRUCK- # 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