Git Product home page Git Product logo

txt2csv's Introduction

txt-to-csv File Conversion

About

This is a very simple and naive program written in C that converts a space/tab separated values text file into a comma separated (csv) file and back, very straightforward.

This program was written as class project for a Systems Programming course, while learning the basics of the C programming language. The original code converted files from CSV to several made-up format and back.

I needed to convert a txt file to csv for another project and for some reason this project came to mind first before searching Google. The program now has been refactored and cleaned up.

Requirements

You will need a C compiler on your system. Must Linux distros and, I believe, macOS (or other UNIX system) come already with a C compiler ready to use.

Windows:


File Format:

  • .CVS: comma-separated values
  • .TXT: space/tab separated values (^[a-zA-Z0-9]\t*\n*)


Run

You can simply run the application directly from Visual Studio (if on windows) or you could use the Developer Command Prompt for VS/Developer PowerShell for VS that comes with Visual Studio (not sure since which release but definitely on 2022)

cl .\txt2csv.c
.\txt2csv.exe

Linux/macOS:

gcc -o txt2csv txt2csv.c
./txt2csv

txt2csv's People

Contributors

markojudas avatar

Watchers

 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.