Giter Site home page Giter Site logo

file-utils's Introduction

NAME

File::Utils - Provide various of file operation

VERSION

version 0.0.5

SYNOPSIS

use File::Utils qw/:gz/;
my $r_gz = read_handle("test.fastq.gz");  # get a read filehandle of *.gz file
my $r_normal = read_handle("test.txt");   # get a normal filehandle

# obtain content of gz file
$r_gz->getline                            # get a line of test.fastq.gz file
$r_gz->getlines                           # get all lines of test.fastq.gz file

my $w_gz = write_handle("test.fastq.gz")  # get a write filehandle of *.gz file 
my $w_normal = write_handle("test.txt")   # get a normal write filehandle

# write content to *gz or normal file
$w_gz->print("the first line\n")          # write a str to test.fastq.gz file
$w_gz->printf("sum value is %.2f", 1.234) # write a formatted string to test.fastq.gz file, just like sprintf

DESCRIPTION

This module will provide various of functions, and each one would conduct a series of operations. The aim of this module is to simplify file operations and make file operation a enjoyment process.

Currently, it only offer the read_handle and write_handle that can process different types of file according to the ext of filename. But more and more functions will be added subsequently and maintain this module constantly.

METHODS

read_handle

Obtain a read filehandle of different types of file according to the ext of a file. It simplified the process of dealing with different types of file and finding specific module

write_handle

Obtain a write filehandle of different types of file according to the ext of a file. It simplified the process of dealing with different types of file and finding specific module

file2array

Convert file path to two-dimension array

AUTHOR

Yan Xueqing [email protected]

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by Yan Xueqing.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

file-utils's People

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.