Archived
1
0
This repository has been archived on 2024-10-17. You can view files and clone it, but cannot push or open issues or pull requests.
winamp/Src/Plugins/Library/ml_bookmarks/bookmark.cpp

32 lines
538 B
C++
Raw Normal View History

2024-09-24 12:54:57 +00:00
/** (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);
}