Git Product home page Git Product logo

io_pathfilename's Introduction

IO_PathFileName

one class for every function you can imagine on path, filename and files

GitHub GitHub release (latest by date) Github All Releases GitHub followers

The functions in this class went with me like forever, like for the very first beginning maybe around february 1998.
Of course the functions have constantly changed over time. In former times the class actually consisted of 3 classes:
PathFileName, PFNStream, PFNProg where PFNStream and PFNProg wrapped PathFileName like in a decorator-pattern.
If you know a function you need on files, that is not included in the class, let me know or start an issue.
When I was first digging into the dotnet-Fx in 2003 I was very confused why there is not such a class contained.
Instead there are some classes doing similar things, making the framework bloated, and cofusing the programmer.

The class PathFileName assumes that every pathfilename consists of the following parts:

  • Path
    • Drive / servername
    • PathOnly
  • Filename
    • FileNameOnly
    • Extension

You can use the following functions on it:

  • Check if file exists
  • Check if path exists
  • Copy a file
  • Move a file
  • Rename a file
  • Delete a file
  • Create a full path
  • Delete a path
  • Validate path and filename by removing illegal letters (like "?")
  • Add double quotes
  • Extract/read every part of the path like in an array
  • Change/write every part of the path like in an array
  • Open for input/output and close after it automatically
  • Write Strings to a text-file
  • Read Strings from a text-file
  • Start the executable or the program associated to the file
  • Start asynchron and synchron by waiting for it to return
  • Get TempPath
  • Get UserPath
  • Get file attributes
  • Get path attributes
  • Create a shorted string of x chars to use in history-lists
  • Get a pointer to a string-buffer to use it in WinAPI-functions
  • Uses mostly VB-functions and as less WinAPI-functions as needed
  • Works in VBC, VBA, VBA7, x86 and x64
  • due to the fact that the class uses all VB syntaxes, all pathfilenames will be used in Ansi when opening files for read- or write-operations.
  • Unicode is supported of course for the file content

PathFileName Image

io_pathfilename's People

Contributors

olimilo1402 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

vb6hobbyst7 xxdoc

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.