Thread: Skipping useless lines?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Oct 2012
    Posts
    158

    Skipping useless lines?

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
            <!-- ******************** Page title ******************** -->
            <title>UC Davis: Summer Sessions 2008</title>
            <!-- ******************** End page title ******************** -->
            <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    
    
    <!-- A Modern CSS -->
    <style type="text/css" media="screen">
            @import url(includes/main.css);
    .style16 {      color: #FFFFFF;
            font-weight: bold;
    }
    #page_content #calendar #disclaimerinfo {
            margin-right: 3em;
    }
    /* If class is cancelled, use this style: */
    .cancel {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 125%; font-weight:bold; color:#FF0000;}
    </style>
    
    
    <style type="text/css" media="print">
            @import url(includes/print.css);
    </style>
    <link href="includes/substyles.css" rel="stylesheet" type="text/css" />
    </head>
    
    
    <body>
    
    
    <div id="page_content">
    
    
    <!--
            This will show only in text-only browsers and allows the user
            to skip the primary navigation and go directly to either
            the second-level navigation or the main content of the page
    -->
            <div id="skipnav">Skip directly to: <a href="#content">Main page content</a></div>
    
    
            <!-- ******************** Header ******************** -->
            <div id="header">
            <!-- The actual logo image is the background of the logo_wrapper DIV.
                     This makes the page more compatible with text-only browsers. -->
                    <div id="logo_wrapper">
    
    
    
    
    
     81104           AAS     052      //    <--start of useful line 
     61754           AAS     050
    What method can i use to process the data in the useful line above?
    Someone mentioned using strncmp. But the entire file is very long and doing it manually will take a long time. Basically skip the html junk above and jump into the line with 81104.
    Last edited by tmac619619; 11-24-2012 at 04:03 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. fgets skipping lines
    By wassat676 in forum C Programming
    Replies: 4
    Last Post: 05-29-2011, 11:45 PM
  2. reading a file with getline and skipping lines..
    By kocmohabt33 in forum C++ Programming
    Replies: 2
    Last Post: 01-29-2011, 12:37 AM
  3. skipping lines with an input text file
    By kwikness in forum C++ Programming
    Replies: 7
    Last Post: 12-12-2006, 09:11 AM
  4. skipping lines
    By LightKnight86 in forum C++ Programming
    Replies: 2
    Last Post: 09-20-2003, 08:26 PM
  5. compiler skipping lines..?
    By Linette in forum C++ Programming
    Replies: 6
    Last Post: 04-12-2002, 11:59 PM