yucatan 0 Report post 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? Share this post Link to post Share on other sites
oMBRa 1 Report post Posted August 29, 2008 is this text in a file.txt? Share this post Link to post Share on other sites
Jos 1,292 Report post 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? 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 0 Report post 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 Share this post Link to post Share on other sites
BrettF 24 Report post 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! Share this post Link to post Share on other sites
yucatan 0 Report post 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. Share this post Link to post Share on other sites
Jos 1,292 Report post 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 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