senorita Posted December 18, 2009 Share Posted December 18, 2009 #include <File.au3> #include <array.au3> $path="file.txt" $fileArray = Fileopen($path,1) For $X = 1 to $fileArray[0] _StringInsert($path,"helloworld\",$fileArray[0]) Next FileClose($path) please help to debug the code my file.txt contains File.txt ------------- peter seoul trinity ... .. paster I want like this File.txt ---------------- helloworld\peter helloworld\seoul helloworld\trinity .... .. helloworld\paster So if any other method please quote here and please help me with it Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted December 18, 2009 Share Posted December 18, 2009 Sounds like you just want to concatenate the strings? For $X = 1 to $fileArray[0] $fileArray[0] = "helloworld\" & $fileArray[0] Next Also you're using FileOpen() wrong, see helpfile. You may want to check _FileReadToArray() too. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface 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