Remove Line In Text

Get help with using AutoHotkey and its commands and hotkeys
User avatar
TheDewd
Posts: 1391
Joined: 19 Dec 2013, 11:16
Location: USA

Remove Line In Text

08 Apr 2014, 10:40

Is there a way to remove specific lines from a text file?

For example, remove lines 1, 2, 3, 4, & 5.. Keep lines 6, 7, 8, 9... Then remove lines 10, 11, & 12, etc....??
Image Bulldozer - Sokoban inspired game from 1994 recreated in AutoHotkey.
User avatar
joedf
Posts: 7646
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada
Contact:

Re: Remove Line In Text

08 Apr 2014, 10:52

Have you tried a library, here are a few good ones ;)
TF http://ahkscript.org/boards/viewtopic.php?f=6&t=576
String Things http://ahkscript.org/boards/viewtopic.php?f=6&t=53
Image Image Image Image Image
Windows 10 x64 Professional, Intel i5-8500, NVIDIA GTX 1060 6GB, 2x8GB G.Skill RipJaws V - DDR4 3280 MHz | [About Me] | [ASPDM - StdLib Distribution]
[Populate the AHK MiniCity!] | [Qonsole - Quake-like console emulator] | [LibCon - Autohotkey Console Library] | [About the AHK Foundation]
User avatar
smorgasbord
Posts: 490
Joined: 30 Sep 2013, 09:34

Re: Remove Line In Text

08 Apr 2014, 11:26

TheDewd wrote:Is there a way to remove specific lines from a text file?

For example, remove lines 1, 2, 3, 4, & 5.. Keep lines 6, 7, 8, 9... Then remove lines 10, 11, & 12, etc....??
someone senior/experienced/mod/admin would suggest you how to fish.
but a novice will try to fish for you, and he/she himself shall polish his pathetic fishing skills.

Scrap that.
is there any logic to "remove lines 1, 2, 3, 4, & 5.. Keep lines 6, 7, 8, 9... Then remove lines 10, 11, & 12, etc....??"

the task is easy.
John ... you working ?

Return to “Ask For Help”

Who is online

Users browsing this forum: AHKStudent, barbaque, Bing [Bot], boiler, Chiefkes, Google [Bot], Ian, lucasstella, Rafaews, vsub, yuyu and 305 guests