Abstract Avatars for All Creative Profile UseMatt Houserhttps://www.figma.com/community/file/1249154526125777853https://creativecommons.org/licenses/by/4.0/Remix of “Abstract Avatars for All Creative Profile Use” (https://www.figma.com/community/file/1249154526125777853) by “Matt Houser”, licensed under “CC BY 4.0” (https://creativecommons.org/licenses/by/4.0/)edwinynOctober 23, 2003 at 4:45 AM#Getting line number for spesific string from text fileI have to replace a string from a text file, but I have to know its line number. How can I do that?
Abstract Avatars for All Creative Profile UseMatt Houserhttps://www.figma.com/community/file/1249154526125777853https://creativecommons.org/licenses/by/4.0/Remix of “Abstract Avatars for All Creative Profile Use” (https://www.figma.com/community/file/1249154526125777853) by “Matt Houser”, licensed under “CC BY 4.0” (https://creativecommons.org/licenses/by/4.0/)kichikOctober 23, 2003 at 8:36 AM#There are lots of functions in the Archive that help you do that. Try this one for example: http://nsis.sourceforge.net/archive/nsisweb.php?page=316&instances=0,11,311
Abstract Avatars for All Creative Profile UseMatt Houserhttps://www.figma.com/community/file/1249154526125777853https://creativecommons.org/licenses/by/4.0/Remix of “Abstract Avatars for All Creative Profile Use” (https://www.figma.com/community/file/1249154526125777853) by “Matt Houser”, licensed under “CC BY 4.0” (https://creativecommons.org/licenses/by/4.0/)Afrow UKOctober 23, 2003 at 4:24 PM#This function will find a string in a file and tell you what line it is on: http://nsis.sourceforge.net/archive/nsisweb.php?page=315&instances=0 You can then use this script to actually replace the text on that line: http://nsis.sourceforge.net/archive/nsisweb.php?page=448&instances=0 The last one I wrote for the sake of this (was bored too). -Stu
Abstract Avatars for All Creative Profile UseMatt Houserhttps://www.figma.com/community/file/1249154526125777853https://creativecommons.org/licenses/by/4.0/Remix of “Abstract Avatars for All Creative Profile Use” (https://www.figma.com/community/file/1249154526125777853) by “Matt Houser”, licensed under “CC BY 4.0” (https://creativecommons.org/licenses/by/4.0/)deguixOctober 23, 2003 at 6:37 PM#I have a suggestion: Have the command FileReadByte, right? It returs a number 1-255 as the character in ANSII. Maybe adding a option to don't convert the character to a number, (meaning as it is). I can use the FileRead, but it doesn't return the Enter key characters.
Abstract Avatars for All Creative Profile UseMatt Houserhttps://www.figma.com/community/file/1249154526125777853https://creativecommons.org/licenses/by/4.0/Remix of “Abstract Avatars for All Creative Profile Use” (https://www.figma.com/community/file/1249154526125777853) by “Matt Houser”, licensed under “CC BY 4.0” (https://creativecommons.org/licenses/by/4.0/)kichikOctober 24, 2003 at 11:20 AM#FileRead does return \n and \r. You can use FileRead's maxlen parameter to make it act like FileReadByte, only without the conversion to a number.
Abstract Avatars for All Creative Profile UseMatt Houserhttps://www.figma.com/community/file/1249154526125777853https://creativecommons.org/licenses/by/4.0/Remix of “Abstract Avatars for All Creative Profile Use” (https://www.figma.com/community/file/1249154526125777853) by “Matt Houser”, licensed under “CC BY 4.0” (https://creativecommons.org/licenses/by/4.0/)deguixOctober 24, 2003 at 6:14 PM#Thanks! I will try it.