as5bcr Posted February 8, 2007 Share Posted February 8, 2007 How can I write spacebar in a file? I tried FileWrite($file, " ") ...But it doesn`t work. Link to comment Share on other sites More sharing options...
/dev/null Posted February 8, 2007 Share Posted February 8, 2007 How can I write spacebar in a file? I tried FileWrite($file, " ") ...But it doesn`t work. FileWrite() works in general. What is the content of your variable $file ?? __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
sandyd Posted February 8, 2007 Share Posted February 8, 2007 Works for me ... Possibly the editor you are using to display the file FileWrite(@TempDir & '\Space.txt', ' ') MsgBox(0,'Space in File','[' & FileRead(@TempDir & '\Space.txt') & ']') ----[ SandyD ]--- Link to comment Share on other sites More sharing options...
as5bcr Posted February 8, 2007 Author Share Posted February 8, 2007 (edited) FileWrite() works in general. What is the content of your variable $file ??$file = FileOpen("test.txt", 1) Edited February 8, 2007 by as5bcr Link to comment Share on other sites More sharing options...
MHz Posted February 8, 2007 Share Posted February 8, 2007 Try this and see if you see the X in the Msgbox. $file = FileOpen("test.txt", 1) If $file <> -1 Then FileWrite($file, " ") FileClose($file) MsgBox(0, '', StringReplace(FileRead('test.txt'), ' ', 'X')) FileDelete('test.txt') EndIf Link to comment Share on other sites More sharing options...
/dev/null Posted February 8, 2007 Share Posted February 8, 2007 $file = FileOpen("test.txt", 1)Should work. Maybe your editor. Add some other text and see if that works... __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
as5bcr Posted February 8, 2007 Author Share Posted February 8, 2007 Try this and see if you see the X in the Msgbox. $file = FileOpen("test.txt", 1) If $file <> -1 Then FileWrite($file, " ") FileClose($file) MsgBox(0, '', StringReplace(FileRead('test.txt'), ' ', 'X')) FileDelete('test.txt') EndIf Yea i see that X. @ /dev/null: It works if I put other text. Link to comment Share on other sites More sharing options...
MHz Posted February 8, 2007 Share Posted February 8, 2007 Yea i see that X.That is good as the X replaced the space that was read. I would guess that your original attempt failed because you may have mixed the file handle with the filename and vice-versa where required or failed to close the file handle. Link to comment Share on other sites More sharing options...
as5bcr Posted February 8, 2007 Author Share Posted February 8, 2007 (edited) It works now thanks a lot guys! Edited February 8, 2007 by as5bcr Link to comment Share on other sites More sharing options...
/dev/null Posted February 8, 2007 Share Posted February 8, 2007 (edited) I tried doing this too.If _IsPressed("20", $dll) ThenFileWrite($file, " ")Sleep(100)EndIf..With no results.1.) you are using _IsPressed in the wrong way.2.) I'm not going to help you with a key logger!EDIT: apparently he changed his post ... Edited February 8, 2007 by /dev/null __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * 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