Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
32
Src/Plugins/Library/ml_bookmarks/bookmark.cpp
Normal file
32
Src/Plugins/Library/ml_bookmarks/bookmark.cpp
Normal file
|
@ -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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue