Jump to content
Sign in to follow this  
miketh2005

How to use FileOpen to paste into a document, and how to erase lines from a document?

Recommended Posts

miketh2005

Hey guys. I'm going to need to be using FileOpen alot, and going over in my mind what I have to do.

I need to erase lines from a document, how would I do this?

On a separate note,

How would I go about pasting something from the clipboard to a line on a document?

Using FileWriteLine? But how? Can I use "^v"?

Share this post


Link to post
Share on other sites
somdcomputerguy

ClipPut - Writes text to the clipboard.

ClipGet - Retrieves text from the clipboard.

As for erasing lines from a document, it would be hard to make suggestions not knowing details..


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites
miketh2005

Ohh, I see how to use ClipGet now... put it in a variable... Thanks!

well, If you must know details, I have lines in a document the bot reads with FileReadLine and pastes in a form on a website, when it uses the line, I want it to erase the line... anyway to do that? thanks again.

Share this post


Link to post
Share on other sites
somdcomputerguy

I'm assuming this a text file, and using any of the File.. Functions are a sure way to 'edit' such a file.


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites
miketh2005

Hmm.. I know about the file functions, but I don't know any that can delete a line... can FileOpen do such a thing? Thanks.

Share this post


Link to post
Share on other sites
somdcomputerguy

I haven't actually done any of this myself yet, but the way I understand it is like this: Read all the lines from a file, but only some or most of them are written back, thereby the lines that aren't written back are 'deleted'.. Search the forum for some examples, I've seen many posts here related to that.

Edited by somdcomputerguy

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites
miketh2005

Hmm.. Thanks. Actually, I wanted to delete the lines that I've already used, so that I can loop the bot.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.