Comments (1)
The file.read()
operation should return false when the file can't be read, which normally implies that it's missing. You can also just check if the file exists with std::filesystem::exists
before writing. Hope this helps.
from mini.
Related Issues (19)
- Subject to multiple definition errors. HOT 1
- Location of the file in linux HOT 2
- Support for std::wstring HOT 5
- Cannot read ini files with utf-8 BOM encoding properly HOT 6
- mIni doesn't parse properly strings HOT 4
- Warnings on Windows with VS2022 MSVC /W4 HOT 1
- this is the best lib for ini that i have ever tried HOT 3
- trailing comments on all lines HOT 4
- Output is being prefixed with gabage HOT 6
- Read a value and get a reference only if exists HOT 1
- not support multiple data types to return HOT 2
- error while using std::stoi with string from mINI. HOT 2
- No support for reading from stringstream or char buffer? HOT 1
- When ini.remove(section) is used, ini file breaks HOT 4
- Read comments on the left of '=' as the value HOT 3
- const std::string HOT 1
- how about cross platform? HOT 1
- no support comment to the right value
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mini.