mirror of
https://github.com/WinampDesktop/winamp.git
synced 2024-09-24 15:54:12 +00:00
32 lines
No EOL
538 B
C++
32 lines
No EOL
538 B
C++
/** (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);
|
|
} |