mirror of
https://github.com/Smaug123/AdventOfCode2022
synced 2025-10-05 09:38:40 +00:00
21 lines
460 B
Forth
21 lines
460 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 ()
|