yucatan Posted August 29, 2008 Share Posted August 29, 2008 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? Link to comment Share on other sites More sharing options...
oMBRa Posted August 29, 2008 Share Posted August 29, 2008 is this text in a file.txt? Link to comment Share on other sites More sharing options...
Developers Jos Posted August 29, 2008 Developers Share Posted August 29, 2008 @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? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
yucatan Posted August 29, 2008 Author Share Posted August 29, 2008 (edited) @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@joshi jos what i am trying to do is to delete a row in a text file how i can do thati cant get it done.i have a text file with 7 ruleson 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 August 29, 2008 by yucatan Link to comment Share on other sites More sharing options...
BrettF Posted August 29, 2008 Share Posted August 29, 2008 Check out _FileWriteToLine Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
yucatan Posted August 29, 2008 Author Share Posted August 29, 2008 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. Link to comment Share on other sites More sharing options...
Developers Jos Posted August 29, 2008 Developers Share Posted August 29, 2008 (edited) 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 August 29, 2008 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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