Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

comma delimiting a txt file???

Status
Not open for further replies.

shadow

Computer
Mar 1, 2001
321
can lsp comma delimit a file that is already a txt file if i give it constraints on where to place the delimiter like for example a mnu file
see where i have # placed

**SUPER_BLOCK_TOOLS#
**TB_SUPER_BLOCK_TOOLS#
ID_#Super_Block_Tools_0# #[_Toolbar("Super Block Tools",# _Floating,# _Show,# 0,# 2,# 1)]#
ID__#23 #[_Button("Block 2 Point",# "blk2pt.BMP",# "ICON_16_BLANK")]#^C^C(load "ask for block2pointcorrect");(c:blk2pt);
ID__#45 #[_Button("Fix Block",# "FixBlock.BMP",# "ICON_16_BLANK")]#^C^C(load "FixBlock.lsp");
ID__#5 #[_Button("Attribite",# "attribite.BMP",# "ICON_16_BLANK")]#^C^C(load "attribite");(C:attribite);
ID__#8 #[_Button("Deattribite",# "DeAttribite.BMP",# "ICON_16_BLANK")]#^C^C(load "attribite");(C:deattribite);
ID__#9 #[_Button("Block Rotate",# "Rotate Block.BMP",# "ICON_16_BLANK")]#^C^C(load "RotBlk");(c:rotblk);


Now there might be some situations where i dont want to place the delimiter before certain characters like if a , is enclosed in (,) i wouldnt want it to place a # before it or if "are enclosed in (") then i would want to place the # before and after the " but not "##" between them you see what im saying i can do this sorta with notepads find and replace but its kinda tedious be nice if i could do this with lisp and just be able to write the rulz
if everyone helps everybody the world will be a better place
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor