Reads the entire contents of the file as a byte array, taking advantage of any permissions that may have been granted by Platform.FilePicker. Returns null on failure. Path to the file. Not affected by Assets folder path. A raw byte array if successful, null if not.
(string filename)
| 227 | /// folder path.</param> |
| 228 | /// <returns>A raw byte array if successful, null if not.</returns> |
| 229 | public static byte[] ReadFileBytes(string filename) |
| 230 | { |
| 231 | ReadFile(filename, out byte[] data); |
| 232 | return data; |
| 233 | } |
| 234 | #endregion |
| 235 | } |
| 236 | } |