Jump to content
Sign in to follow this  
yucatan

string

Recommended Posts

yucatan

is there a way to do this

before script

some tekst

some tekst

some tekst

some tekst

becomes

some tekst

some tekst

some tekst

some tekst

a func that can remove emty lines?

is this possble?

Share this post


Link to post
Share on other sites
Jos

@yucatan,

You are long enough in these forums to have a go at this yourself and I am sure you can do it.

What have you tried that doesn't work yet?

;)


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
yucatan

@yucatan,

You are long enough in these forums to have a go at this yourself and I am sure you can do it.

What have you tried that doesn't work yet?

;)

@ombra yes its a text file

@jos

hi jos what i am trying to do is to delete a row in a text file how i can do that

i cant get it done.

i have a text file with 7 rules

on rule 5 is standing this "some text"

i wanne make a func that when i say delete "some text"

that it delete the whole rule 5.

Edited by yucatan

Share this post


Link to post
Share on other sites
BrettF
yucatan

Check out _FileWriteToLine ;)

and when if i use filewritetoline then i get a emty rule in my text file... that not what i mean the whole rule need to be delete so everything thats below that rule go's one rule up.

Share this post


Link to post
Share on other sites
Jos

I understand that you have a textfile with 7 records and you want to remove all empty records.

What I want you to do first is write some basic code to read the input file and write all records except the empty ones to the new file.

Give that a try and post the code when you are done and still have some questions.

Oh and try not to use any UDF for the time being but try to understand your program because only this way you will learn to write programs. ;)

Jos

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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.