Coder Social home page Coder Social logo

task1's Introduction

TaskOne - Writes n lines of random numbers to a file.

Installation

git clone https://github.com/danielwikander/Task1
cd Task1/src/
javac TaskOne.java

How to run

java TaskOne [ARGUMENT] [ARGUMENT]

For example:

java TaskOne 10 testFile

testFile now has 10 lines of random numbers.

Manpage

The following manpage can be accessed using the command java TaskOne -h

Synopsis 
    TaskOne [n] [filepath]
    
Description
    Writes n lines of random numbers to file.
    Requires both arguments to run.
    Arguments must be written in the order: n, filePath.
    Existing files will be overwritten if given as an argument.

Arguments
    n:        The number of lines to write to the file. Must be an integer.
    filepath: The path the the file to create/overwrite. Must be a valid filepath.

Examples
    TaskOne 10 newFile
        The file 'newFile' will be created and 10 lines will be written.
    TaskOne 25 testFile
        The file 'testFile' will be created and 25 lines will be written.

task1's People

Contributors

danielwikander avatar

Watchers

 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.