Skip to content

robinsongomes/Text-File-Manipulation-CPP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Text File Manipulation C++ Read/Write variables in text files with C++

##Documentation

int clone_file(const string &path, const string &path_clone)

Make a copy of a file, used by writing functions.

int write_comment(string path, int n_line, string comment)

Add a comment in a file line.

int write_variable(string path, string variable_name, string variable_value)

Add or replace the value of a variable in the file.

string read_variable(string path, string variable_name)

Read a variable in the file and return its value.

##Installation Copy the files "file.h" and "file.cpp" for your project and include the file "file.h". The file "main.cpp" and "example.txt" is an example of how to use the functions.

About

read/write variables in files with C ++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages