Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > Pro Java
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Pro Java Expert level Java questions not about a specific book. Please indicate your version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro Java section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 14th, 2006, 09:08 AM
Authorized User
Join Date: Dec 2005
Location: Kathmandu, Bagmati, Nepal.
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default Reading multiple lines as a single unit

While writing a file-processing script, I came across the following case where I need
to read info like ENDDOC and PGCount for multiple records that are in the same file.
; Record 1
@C ENDDOC# ATYC-12769314
@C PGCount 20
@T ATYC-12769295

; Record 2
@C ENDDOC# ATYC-12769317
@C PGCount 3
@T ATYC-12769315

Can you suggest how should I read the lines with empty string in between?

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
reading a stream from all the lines of a file vaidyapragati ASP.NET 2.0 Basics 3 May 10th, 2007 02:33 AM
Multiple Lines in Button jmss66 Classic ASP Basics 3 September 21st, 2006 10:01 AM
Increase row height in Excel and multiple lines in jmss66 VB How-To 4 June 23rd, 2006 05:45 AM
Single or Multiple application. Gibs_poovath General .NET 7 May 25th, 2004 07:54 AM

All times are GMT -4. The time now is 09:15 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.