VB script to read text file

Read text file and break until blank line

Page 1 of 1

2 Replies - 4832 Views - Last Post: 24 October 2010 - 06:11 AM Rate Topic: -----

#1 kennydiao  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 22-October 10

VB script to read text file

Posted 22 October 2010 - 07:03 PM

hi experts,
I am new to scripting. Need your help to resolve a project that I am working on. Basically i have a text file i need to split to multiple files from each section.

@my test.txt

[test1]
dev1=aaaaa
dev2=bbbbbbb
work=11111
work2=22222

[test2]
dev1=aaaaa
dev2=bbbbbbb
work=11111

[xyez]
dev1=aaaaa
dev2=bbbbbbb
work2=22222


I need to use search on [xxxxx], the create a sort text file only include the section i search.

Please help.. any script..

Is This A Good Question/Topic? 0
  • +

Replies To: VB script to read text file

#2 macosxnerd101  Icon User is offline

  • Games, Graphs, and Auctions
  • member icon




Reputation: 12148
  • View blog
  • Posts: 45,161
  • Joined: 27-December 08

Re: VB script to read text file

Posted 22 October 2010 - 07:08 PM

Show us your good faith efforts and we will be happy to help. If you do not know where to start, the VB Snippets and Tutorials sections are great places. When posting code, please remember to use code tags and specifically describe your problems or errors.
Was This Post Helpful? 0
  • +
  • -

#3 thava  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 180
  • View blog
  • Posts: 1,607
  • Joined: 17-April 07

Re: VB script to read text file

Posted 24 October 2010 - 06:11 AM

this is a simple task

show your code then only we can redirect you to the solution
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1