2026-03-01 12:16:08 +08:00
|
|
|
#include "stdafx.h"
|
|
|
|
|
#include "File.h"
|
|
|
|
|
#include "InputOutputStream.h"
|
|
|
|
|
#include "InputStream.h"
|
|
|
|
|
|
|
|
|
|
InputStream *InputStream::getResourceAsStream(const wstring &fileName)
|
|
|
|
|
{
|
2026-03-01 11:00:23 -06:00
|
|
|
File file( fileName );
|
|
|
|
|
|
|
|
|
|
return file.exists() ? new FileInputStream( file ) : NULL;
|
2026-03-01 12:16:08 +08:00
|
|
|
}
|