aboutsummaryrefslogtreecommitdiff
path: root/Src/Plugins/Library/ml_bookmarks/bookmark.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Plugins/Library/ml_bookmarks/bookmark.cpp')
-rw-r--r--Src/Plugins/Library/ml_bookmarks/bookmark.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/Src/Plugins/Library/ml_bookmarks/bookmark.cpp b/Src/Plugins/Library/ml_bookmarks/bookmark.cpp
new file mode 100644
index 00000000..c7ad05e1
--- /dev/null
+++ b/Src/Plugins/Library/ml_bookmarks/bookmark.cpp
@@ -0,0 +1,32 @@
+/** (c) Nullsoft, Inc. C O N F I D E N T I A L
+ ** Filename:
+ ** Project:
+ ** Description:
+ ** Author:
+ ** Created:
+ **/
+#include "bookmark.h"
+
+BookmarkWriter::BookmarkWriter():fp(0)
+{
+}
+
+void BookmarkWriter::Open(const wchar_t *filename)
+{
+ fp=_wfopen(filename, L"a+t");
+}
+
+void BookmarkWriter::New(const wchar_t *filename)
+{
+ fp=_wfopen(filename, L"wt");
+}
+
+void BookmarkWriter::Write(const char *filename, const char *title)
+{
+ fprintf(fp,"%s\n%s\n",filename,title);
+}
+
+void BookmarkWriter::Close()
+{
+ if (fp) fclose(fp);
+} \ No newline at end of file