Dx3 Posted May 14, 2006 Share Posted May 14, 2006 Hi everyone (hope I'm not bothing everyone again j/k). I was just wondering if there are FileCreate, EditFile, etc. script command things. I heard about them from a friend who uses AutoIt. Thanks so much everyone, -Dalton Link to comment Share on other sites More sharing options...
Valuater Posted May 14, 2006 Share Posted May 14, 2006 Hi everyone (hope I'm not bothing everyone again j/k). I was just wondering if there are FileCreate, EditFile, etc. script command things. I heard about them from a friend who uses AutoIt.Thanks so much everyone,-Daltonthere are many, many file controls... see the help indexjust look for "file"8) Link to comment Share on other sites More sharing options...
Dx3 Posted May 14, 2006 Author Share Posted May 14, 2006 Wow, thanks, it's everything I needed any more! Thanks! Link to comment Share on other sites More sharing options...
Dx3 Posted May 14, 2006 Author Share Posted May 14, 2006 Just Wondering with $file = FileOpen("test.txt", 1) can I use "C:\test\test.txt" instead of "test.txt"? Link to comment Share on other sites More sharing options...
Valuater Posted May 14, 2006 Share Posted May 14, 2006 Just Wondering with $file = FileOpen("test.txt", 1)can I use "C:\test\test.txt" instead of "test.txt"?yes8) Link to comment Share on other sites More sharing options...
youkielkanish Posted May 15, 2006 Share Posted May 15, 2006 while we are in the file questions, i have troubles opening multiple files, i d like to open one in reading mode and another in writing mode. i manage toopen one at a time, but sometimes a wierd error happens. it s something like this : i»¿$file = FileOpen("test.txt",0) ^ERROR usualy it hapens after i try to open 2 files at once, though when i erase the new statements i put it still send me this error. Link to comment Share on other sites More sharing options...
ChrisL Posted May 15, 2006 Share Posted May 15, 2006 (edited) $file = FileOpen("test.txt", 0) ;open file for reading $file2 = FileOpen("test2.txt", 1);open another file for writing to the end of the file You need to be using 2 different files one for reading and one for writing and also the file handle needs to have 2 different names. Remember to close both file handles once you have finished reading and writing. FileClose ($file) FileClose ($File2) Edited May 15, 2006 by ChrisL [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
youkielkanish Posted May 15, 2006 Share Posted May 15, 2006 $file = FileOpen("test.txt", 0) ;open file for reading$file2 = FileOpen("test2.txt", 1);open another file for writing to the end of the fileYou need to be using 2 different files one for reading and one for writing and also the file handle needs to have 2 different names.Remember to close both file handles once you have finished reading and writing.FileClose ($file)FileClose ($File2)the problem is that i was doing it exactly like this loli ll try again Link to comment Share on other sites More sharing options...
herewasplato Posted May 15, 2006 Share Posted May 15, 2006 @youkielkanish, Welcome to the forums. It is best to start a new topic - even if your problem is very close to another post. I has to do with the way that people keep track of "their threads". It would be best for you to post the code that you have tried so that we don't have to guess... :-) [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
youkielkanish Posted May 15, 2006 Share Posted May 15, 2006 (edited) @youkielkanish,Welcome to the forums. It is best to start a new topic - even if your problem is very close to another post. I has to do with the way that people keep track of "their threads".It would be best for you to post the code that you have tried so that we don't have to guess... :-)hello,ok i ll do that, i didn t want to flood the forum with another post of a kind that already exist, but i ll do it Edited May 15, 2006 by youkielkanish 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