src/FS/File/List/Reader.php
public static function read( $fileName )
	{
		$list	= array();
		if( !file_exists( $fileName ) )
			throw new RuntimeException( 'File "'.$fileName.'" is not existing' );
		$reader	= new FS_File_Reader( $fileName );
		$lines	= $reader->readArray();
		foreach( $lines as $line )
			if( $line = trim( $line ) )
				if( !preg_match( self::$commentPattern, $line ) )
					$list[]	= $line;
		return $list;
	}
public static function read( $fileName )
	{
		$list	= array();
		if( !file_exists( $fileName ) )
			throw new RuntimeException( 'File "'.$fileName.'" is not existing' );
		$reader	= new FS_File_Reader( $fileName );
		$lines	= $reader->readArray();
		foreach( $lines as $line )
			if( $line = trim( $line ) )
				if( !preg_match( self::$commentPattern, $line ) )
					$list[]	= $line;
		return $list;
	}
public static function read ( $ fileName ) { $ list = array ( ) ; if ( ! file_exists ( $ fileName ) ) throw new RuntimeException ( 'File "' . $ fileName . '" is not existing' ) ; $ reader = new FS_File_Reader ( $ fileName ) ; $ lines = $ reader -> readArray ( ) ; foreach ( $ lines as $ line ) if ( $ line = trim ( $ line ) ) if ( ! preg_match ( self :: $ commentPattern , $ line ) ) $ list [ ] = $ line ; return $ list ; }
Reads List File.
@access		public
@static
@param		string	fileName		URI of list
@return		void
Reads List File .