Sign in to follow this  
Followers 0
Wiggyboy

Replace linebreak???

2 posts in this topic

#1 ·  Posted (edited)

Hey xD, I belive i'm having some problems with this script,

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <TabConstants.au3>
#Include <GuiListBox.au3>
#Include <GuiTab.au3>
#include <EditConstants.au3>
#Include <Misc.au3>
$data = FileRead("model.mdf")
$data = StringReplace($data,"   ","")
;$data = StringReplace($data,@CRLF & @CRLF,"~")
$data = StringReplace($data,@CRLF," ")
;$data = StringReplace($data,"~",@CRLF & @CRLF)
;$data = StringReplace($data," ability_0"," /heroes/" & $key &"/ability_0")
;$data = StringReplace($data," sounds/"," /heroes/" & $key &"/sounds/")
;$data = StringReplace($data,'"clips/','"/heroes/' & $key &"/clips/")
;$data = StringReplace($data,"../","/heroes/" & $key2 &"/")
$data = StringReplace($data,'"',"'")
FileDelete("model.mdf")
FileWrite("model.mdf",$data)

this is what is in model.mdf

test
    test
        test

and afterwords left is this

test
    test
        test

before this worked fine, removing both characters, but then it stopped replaceing linebreaker and just replace'd " "(tabs) and now it doesn't even remove anything??

Edited by Wiggyboy

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