Showing tag results for text files

Jun 7, 2005
Post comments count0
Post likes count0

How Can I Tally Items in a Text File?

ScriptingGuy1

Hey, Scripting Guy! How can I tally items in a text file?-- JA Hey, JA. If we understand you correctly you have a text file that consists of a number of lines, each line representing a particular item. Just to keep things simple, let’s say your text file consists of city names:City Seattle Seattle Los Angeles Chicago Seattle Los Angeles Pittsbur...

Scripting Guy!scripting techniquesVBScript
May 20, 2005
Post comments count0
Post likes count0

How Can I Remove the Last Carriage Return-Linefeed in a Text File?

ScriptingGuy1

Hey, Scripting Guy! How can I remove the last carriage return-linefeed in a text file?-- LEK Hey, LEK. From the rest of your email you note that you’re using the FileSystemObject to read a text file, then using the contents of that text file as a query in another application. Unfortunately, though, the text file invariably has a carriage return-...

Scripting Guy!scripting techniquesVBScript
Apr 22, 2005
Post comments count0
Post likes count0

How Can I Add Two Blank Lines Between Each Line in a Text File?

ScriptingGuy1

Hey, Scripting Guy! Hey, Scripting Guy! How can I add two blank lines between each line in a text file?-- LW Hey, LW. You know, when we wrote the Microsoft Windows 2000 Scripting Guide we included 4 or 5 examples of how you might work with text files. And then we thought to ourselves, “Well, we’ve pretty much exhausted all the things you can do ...

Scripting Guy!scripting techniquesVBScript
Apr 18, 2005
Post comments count0
Post likes count0

How Can I Determine the Version Number of a File?

ScriptingGuy1

Hey, Scripting Guy! How can I extract version information for a DLL or other type of file?-- DM Hey, DM. There at least two ways we know of to retrieve the version information for a file: one designed for working on the local computer and one that can work either locally or remotely. Being the kind of guys that we are, we’ll show you both soluti...

Scripting Guy!scripting techniquesVBScript
Apr 15, 2005
Post comments count0
Post likes count0

How Can I Search a Text File for 9-Digit Numbers?

ScriptingGuy1

Hey, Scripting Guy! How can I search for user names in a text file? In my case, the user names all consist of 9 digits, although they can be any 9 digits.-- GG Hey, GG. Interesting question. You want to search for 9-digit numbers (like 123456789) in a text file; the only problem is that these could be any 9-digit numbers. And that definitely is ...

Scripting Guy!scripting techniquesVBScript