sauyogamesph Posted April 30, 2019 Share Posted April 30, 2019 How to Edit The Txt file example abcde To a b c d e Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted April 30, 2019 Moderators Share Posted April 30, 2019 @sauyogamesph You could not have shown less effort if you tried. Open the help file and look at FileRead. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
jchd Posted May 1, 2019 Share Posted May 1, 2019 That and StringSplit(). This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt) Link to comment Share on other sites More sharing options...
sauyogamesph Posted May 6, 2019 Author Share Posted May 6, 2019 (edited) Where I put the code here the code _filewritetoline(@ScriptDir & "\filefolder\configs\plugins.ini", 1, "ABCDE", True) @jchd Edited May 6, 2019 by sauyogamesph Link to comment Share on other sites More sharing options...
alienclone Posted May 6, 2019 Share Posted May 6, 2019 you need to add some line feeds and carriage returns, @CRLF If @error Then MsgBox(262192, "", @ComputerName & " slaps " & @UserName & " around a bit with a large trout!") EndIf "Yeah yeah yeah patience, how long will that take?" -Ed Gruberman REAL search results | SciTE4AutoIt3 Editor Full Version Link to comment Share on other sites More sharing options...
KickStarter15 Posted May 7, 2019 Share Posted May 7, 2019 @sauyogamesph, try this. Local $string = StringSplit("ABCDE", "") For $i = 1 To $string[0] FileWrite(@ScriptDir & "\ABC.txt", $string[$i] & @CRLF) Next Programming is "To make it so simple that there are obviously no deficiencies" or "To make it so complicated that there are no obvious deficiencies" by C.A.R. Hoare. Link to comment Share on other sites More sharing options...
sauyogamesph Posted May 7, 2019 Author Share Posted May 7, 2019 (edited) @KickStarter15 sorry I forgot I try this . this example a:b:c:d and input has a b c d Thanks btw Edited May 7, 2019 by sauyogamesph Link to comment Share on other sites More sharing options...
KickStarter15 Posted May 7, 2019 Share Posted May 7, 2019 @sauyogamesph, If you replace the delimiter from the stringsplit() then add additional @CRLF after the filewrite() that will do what you want. Else, please provide a sample code you have. Programming is "To make it so simple that there are obviously no deficiencies" or "To make it so complicated that there are no obvious deficiencies" by C.A.R. Hoare. 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