๐ŸŒ DoTheWorld

August 21, 2025 ยท View on GitHub

Version License Platform Build Status

A single-file C/C++ library for robust file system operations and data management

Installation โ€ข Documentation โ€ข Features โ€ข Examples โ€ข Contributing

๐Ÿ“‹ Overview

DoTheWorld is a powerful Windows/Linux cross-platform library designed for comprehensive file and data handling in C/C++. From basic I/O operations to complex transactional systems, it provides a complete toolkit for file manipulation, encryption, hashing, and database-like functionality - all from a single file include.

โœจ Features

  • ๐Ÿ“ File and directory management
  • ๐Ÿ”„ Atomic transactions
  • ๐Ÿ”’ Thread-safe lockers
  • ๐Ÿ” File search and listing
  • โฑ๏ธ Modification date tracking
  • ๐Ÿ” SHA256 hashing
  • ๐Ÿ“Š Base64 encoding/decoding
  • ๐Ÿ—„๏ธ Resource management system
  • ๐ŸŒฒ Tree data structures
  • ๐Ÿ”€ Path manipulation utilities
  • ๐Ÿ“ฆ Non-relational database
  • ๐Ÿ”‘ Schema validation
  • ๐Ÿš€ High-performance operations
  • ๐Ÿ”„ Copy and move operations
  • ๐Ÿ” Encryption capabilities

๐Ÿ“ฆ Releases

PackageDescription
doTheWorld.zipFull package with all components
doTheWorldOne.cSingle-file amalgamated version
doTheWorld.hHeader declarations
doTheWorld.cSource definitions

๐Ÿ“ฆ Installation

// Just download and include
#include "doTheWorldOne.c"

Option 2: Traditional Header/Source

// Include the header in your code
#include "doTheWorld.h"

// And link with doTheWorld.c during compilation

๐Ÿ“š Documentation

CategoryDocumentation LinkDescription
๐Ÿ—๏ธ SetupBuild & InstallGetting started with DoTheWorld
๐Ÿ“ Core I/OBasic I/OReading and writing files
๐Ÿ”„ OperationsCopy & MoveFile and folder operations
๐Ÿ” DiscoveryListageListing files and directories
๐Ÿ”ข EncodingBase64Base64 encoding and decoding
๐Ÿ” SecurityHashersSHA256 and other hashing functions
โฑ๏ธ TrackingUnixUnix timestamp utilities
๐Ÿ”’ ConcurrencyLockerThread-safe operations
๐Ÿ—„๏ธ ResourcesResource SystemResource management framework
๐ŸŒฒ StructureTreeTree data structure implementation
๐ŸŽฒ RandomRandomizersRandom generation utilities
โšก PerformanceTransactionsAtomic transaction system
๐Ÿงฉ ComponentsDependenciesLibrary dependencies
๐Ÿ” SecurityEncryptionData encryption capabilities

๐Ÿš€ Quick Examples

Reading and Writing Files

#include "doTheWorldOne.c"

int main() {
    // Write a string to file
    dtw_write_string_to_file("hello.txt", "Hello, World!");
    
    // Read file content
    char *content = dtw_load_string_file("hello.txt");
    printf("%s\n", content);
    free(content);
    
    return 0;
}

Using the Resource System

#include "doTheWorldOne.c"

int main() {
    // Create a resource
    DtwResource *resource = new_DtwResource("my_data");
    
    // Set values
    DtwResource *user = DtwResource_sub_resource(resource, "user");
    DtwResource_set_string_in_sub_resource(user, "name", "John");
    DtwResource_set_long_in_sub_resource(user, "age", 30);
    
    // Commit changes
    DtwResource_commit(resource);
    DtwResource_free(resource);
    
    return 0;
}

๐Ÿ› ๏ธ Build Toolchain

๐Ÿ’ก Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

โญ Support

If you find DoTheWorld useful, please consider giving it a star on GitHub!


Built with โค๏ธ by OUI Solutions