mirror of
https://github.com/Smaug123/AdventOfCode2022
synced 2025-10-05 17:48:40 +00:00
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Smaug123 <3138005+Smaug123@users.noreply.github.com>
19 lines
444 B
Forth
19 lines
444 B
Forth
namespace AdventOfCode2022.Test
|
|
|
|
open System.IO
|
|
open System.Reflection
|
|
|
|
[<RequireQualifiedAccess>]
|
|
module Assembly =
|
|
|
|
type private Dummy = class end
|
|
|
|
let readResource (name : string) : string =
|
|
let asm = Assembly.GetAssembly typeof<Dummy>
|
|
|
|
use stream =
|
|
asm.GetManifestResourceStream (sprintf "AdventOfCode2022.Test.Inputs.%s" name)
|
|
|
|
use reader = new StreamReader (stream)
|
|
reader.ReadToEnd ()
|