Jump to content

trying to stringreplace a {tab} or NBSP in a file


Recommended Posts

Jim
    John
    James
    Test
    Test
    TEST
    DSFSDFS
    dfsfs
#include <File.au3>
#include <String.au3>
$fi = FileRead(@DesktopDir & "\Filelist.txt")
$fi = StringReplace($fi, "minutes", "minute")
ClipPut($fi)
$in = _StringBetween($fi, "minute", "flag")
If IsArray($in) Then
    For $x = 1 To UBound($in) - 1
        $fi = StringReplace($in[$x], "  ", "")
        FileWriteLine(@DesktopDir & "\Files.txt", $fi & @CRLF)
    Next
Else
    MsgBox(0, "", "Error")
EndIf

you know like when you hit tab... i know this is gonna be simple...

Edited by supadodger
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...