Write one line data to the file handle pointer.
- Parameters
-
| [in] | handle | The file handle. |
| [in] | text | The one line data pointer. |
- Returns
- true if file handle is valid and successfully write data.
Definition at line 158 of file FileLibrary.cpp.
159 {
161
162 if (handle->handle)
163 {
164 int result = fputs(text, static_cast<FILE*>(handle->handle));
165 if (result != EOF)
166 {
167 result = fputc('\n', static_cast<FILE*>(handle->handle));
168 }
169
170
171
172 auto state = fflush(static_cast<FILE*>(handle->handle));
173 return result != EOF;
174 }
175 return false;
176 }
#define SPICES_PROFILE_ZONE
References Spices::FileHandle::handle.
Referenced by SpicesTest::TEST().