mirror of
https://github.com/digital-jellyfish/Virtu.git
synced 2024-12-02 18:53:57 +00:00
eaaab47a6c
--HG-- extra : convert_revision : svn%3Affd33b8c-2492-42e0-bdc5-587b920b7d6d/trunk%4019155
20 lines
467 B
C#
20 lines
467 B
C#
using System.IO;
|
|
|
|
namespace Jellyfish.Library
|
|
{
|
|
public static class FileHelpers
|
|
{
|
|
public static byte[] ReadAllBytes(string path)
|
|
{
|
|
#if SILVERLIGHT || XBOX || ZUNE
|
|
using (FileStream stream = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read))
|
|
{
|
|
return stream.ReadAllBytes();
|
|
}
|
|
#else
|
|
return File.ReadAllBytes(path);
|
|
#endif
|
|
}
|
|
}
|
|
}
|