Link to USGS home page Link to InfoBank home page Link to InfoBank home page
 USGS Coastal and Marine Geology banner.    Search InfoBank.
USGS InfoBank program -- emptytail Skip navigational links
Home tab Atlas tab Activities tab FACS tab Geology School tab More tab Activities tabs
   
InfoBank Programs: by Name   by Data Type   General Tools   GIS   Plotting   Web   USGS Disclaimer   InfoBank Programs   Boothill  
   
Expanded description
Topic Description
Name
emptytail
Synopsis
/infobank/programs/dbase/validator/emptytail.for
Description
  Subroutine to verify that the last record of a file is not blank.

    
Opens
     open (unit = TempUnit,
*          access = 'sequential',
*          form = 'formatted',
*          status = 'old',
*          name = '/tmp/validator.tmp')

    
Reads
     read (TempUnit, '(a1024)', end=99) ALine
    
Writes
 write (ALine, '(1024x)')
         write (Message, '(a,a,a)')
*            InFile(1:InFileLength), ' *** ',
*            'Remove blank line at end of file'
    
Calls
     call system ('tail -1 '//InFile(1:InFileLength)//
*                 ' > /tmp/validator.tmp')

     call stringlen (ALine, ALineLength)
    

Skip footer navigational links

InfoBank   Menlo Park Center   Santa Cruz Center   St. Petersburg Center   Woods Hole Center   Coastal and Marine Geology Program  
U. S. Department of the Interior   U. S. Geological Survey   Geologic Information   Ask-A-Geologist   USGS privacy statement   Disclaimer  

URL: http://walrus.wr.usgs.gov/infobank/programs/dbase/validator/emptytail.doc.html
Maintainer: Clint Steele
Comments: e-mail
Last modified: Thu Nov 4 03:18:12 PST 2004  (wcs)