Sign in to follow this  
Followers 0
as5bcr

Filewrite

10 posts in this topic

How can I write spacebar in a file?

I tried

FileWrite($file, " ")

...But it doesn`t work.

Share this post


Link to post
Share on other sites



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 *

Share this post


Link to post
Share on other sites

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 ]---

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

FileWrite() works in general. What is the content of your variable $file ??

$file = FileOpen("test.txt", 1) Edited by as5bcr

Share this post


Link to post
Share on other sites

$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 *

Share this post


Link to post
Share on other sites

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.

:whistle:

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

It works now thanks a lot guys! :whistle:

Edited by as5bcr

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

I tried doing this too.

If _IsPressed("20", $dll) Then

FileWrite($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 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 *

Share this post


Link to post
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
Sign in to follow this  
Followers 0