Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
macaon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Franck Dary
macaon
Commits
7e7d8d52
Commit
7e7d8d52
authored
5 years ago
by
Franck Dary
Browse files
Options
Downloads
Patches
Plain Diff
Throwing exception when rm file not found
parent
2ac42b6d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
reading_machine/src/ReadingMachine.cpp
+2
-0
2 additions, 0 deletions
reading_machine/src/ReadingMachine.cpp
with
2 additions
and
0 deletions
reading_machine/src/ReadingMachine.cpp
+
2
−
0
View file @
7e7d8d52
...
@@ -21,6 +21,8 @@ ReadingMachine::ReadingMachine(std::filesystem::path path, std::vector<std::file
...
@@ -21,6 +21,8 @@ ReadingMachine::ReadingMachine(std::filesystem::path path, std::vector<std::file
void
ReadingMachine
::
readFromFile
(
std
::
filesystem
::
path
path
)
void
ReadingMachine
::
readFromFile
(
std
::
filesystem
::
path
path
)
{
{
std
::
FILE
*
file
=
std
::
fopen
(
path
.
c_str
(),
"r"
);
std
::
FILE
*
file
=
std
::
fopen
(
path
.
c_str
(),
"r"
);
if
(
not
file
)
util
::
myThrow
(
fmt
::
format
(
"can't open file '{}'"
,
path
.
string
()));
char
buffer
[
1024
];
char
buffer
[
1024
];
std
::
string
fileContent
;
std
::
string
fileContent
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment