Build_solutions_rust file not found

Hi, i am getting the following error when running the build_solutions_rust:

error: couldn't read root/src/doyle.txt: No such file or directory (os error 2)
  --> root/src/branch-name.rs:43:19
   |
43 |   let full_text = include_str!("doyle.txt");
   |                   ^^^^^^^^^^^^^^^^^^^^^^^^^

The file is already in the solution folder, but it looks like the CI assigns a weird path. How should i fix the path for the file to be correctly processed?

You need to pass the file via stdin: cat doyle.txt | branch-name.rs

Do not reference it inside your code.

I’m already reading the DATA.lst from stdin, like in most solutions cat DATA.lst | branch.name.rs, so how should i deal with both files?

I see… If you need to obtain two different data sets, you’ll have to pass them using the same file. Parse it with something like:

---section1---
asasdasda
asd
asd
asd
---section1---
---section2---
asdasddas
asdasd
asdasd
---section2---

EDIT: You can also add some metadata to each file and then do cat file1 file2 | rust. Then separate both files using the metadata.

Maybe tail could be used too? like in:
tail -n +1 DATA.lst DATA2.lst
That separates the two files with headers, for the example will be something like :

==> DATA.lst <==
a
b
c
==> DATA2.lst <==
d
e
f

@major-indication

If you solve it please mark the thread as solved.