# phpman > man > Devel::Cover::DB::IO(3pm)

## NAME
    [Devel::Cover::DB::IO](https://www.chedong.com/phpMan.php/perldoc/Devel%3A%3ACover%3A%3ADB%3A%3AIO/markdown) - IO routines for [Devel::Cover::DB](https://www.chedong.com/phpMan.php/perldoc/Devel%3A%3ACover%3A%3ADB/markdown)

## VERSION
    version 1.36

## SYNOPSIS
     use [Devel::Cover::DB::IO](https://www.chedong.com/phpMan.php/perldoc/Devel%3A%3ACover%3A%3ADB%3A%3AIO/markdown);

     my $io = [Devel::Cover::DB::IO](https://www.chedong.com/phpMan.php/perldoc/Devel%3A%3ACover%3A%3ADB%3A%3AIO/markdown)->new(format => "JSON");
     my $data = $io->read($file);
     $io->write($data, $file);

## DESCRIPTION
    This module provides IO routines for [Devel::Cover::DB](https://www.chedong.com/phpMan.php/perldoc/Devel%3A%3ACover%3A%3ADB/markdown).

## SEE ALSO
     [Devel::Cover](https://www.chedong.com/phpMan.php/perldoc/Devel%3A%3ACover/markdown)

## METHODS
  new
     my $io = [Devel::Cover::DB::IO](https://www.chedong.com/phpMan.php/perldoc/Devel%3A%3ACover%3A%3ADB%3A%3AIO/markdown)->new(format => "JSON");

    Constructs the IO object.

  read
     my $data = $io->read($file);

    Returns a perl data structure representing the data read from $file.

  write
     $io->write($data, $file);

    Writes $data to $file in the format specified when creating $io.

## BUGS
    Huh?

## LICENCE
    Copyright 2011-2019, Paul Johnson (<paul@pjcj.net>)

    This software is free. It is licensed under the same terms as Perl itself.

    The latest version of this software should be available from my homepage: <http://www.pjcj.net>

