Showing tag results for text files

Apr 16, 2007
Post comments count0
Post likes count0

How Can I Read the Contents of a Text File and Then Declare the Contents as Variables?

ScriptingGuy1

Hey, Scripting Guy! How can I read the contents of a text file, and then declare those contents as variables?-- TC Hey, TC. Before we begin, did you really ask us this question? We’re positive that you did, but, the way things have been going lately, we can’t be too sure. For example, by now everyone has heard that Scripting Guy Jean Ross went d...

Scripting Guy!scripting techniquesVBScript
Mar 30, 2007
Post comments count0
Post likes count0

How Can I Locate a Word in a Text File and Then Echo Back That Word and Any Remaining Text?

ScriptingGuy1

Hey, Scripting Guy! How can I search for a word in a text file and then, after I find it, echo back that word and any remaining text in the text file?-- KA Hey, KA. Before we begin we’d like to thank the hundreds and hundreds of people who have sent Scripting Guy Jean Ross get well wishes after her unfortunate mishap at Microsoft Management Summ...

Scripting Guy!scripting techniquesVBScript
Mar 29, 2007
Post comments count0
Post likes count0

How Can I Search a Text File for Strings Meeting a Specified Pattern?

ScriptingGuy1

Hey, Scripting Guy! How can I search a text file of product IDs and retrieve just those lines that meet a specified pattern?-- WT Hey, WT. Before we get to today’s question we were wondering if anyone else has seen the commercial for the car that features the all-new “heartbeat sensor?” The idea is that, before you open your car door, you check ...

Scripting Guy!scripting techniquesVBScript
Mar 6, 2007
Post comments count0
Post likes count0

How Can I Count the Number of Characters in a Text File?

ScriptingGuy1

Hey, Scripting Guy! How can I count the number of characters in a text file?-- LD Hey, LD. We know a burning question for many of you (in addition to the question of how you can count the number of characters in a text file) is this: what kind of digital video recorder does the Scripting Guy who writes that column own? Well, here’s your answer: ...

Scripting Guy!scripting techniquesVBScript
Mar 3, 2007
Post comments count0
Post likes count0

How Can I Modify a Text File and Then Extract Selected Lines From the Modified Contents?

ScriptingGuy1

Hey, Scripting Guy! How can I write a script that modifies the contents of a text file and then copies specified lines from the modified contents to a new file?-- EH Hey, EH. There’s no way to do that. Now go away and leave us alone. Wait, sorry; we didn’t mean it. As it turns out, the Scripting Guy who writes this column is in a terrible mood t...

Scripting Guy!scripting techniquesVBScript