# Cannot open file

**URL:** <https://forum.choiceofgames.com/t/cannot-open-file/44253>\
**Category:** ChoiceScript Help\
**Created:** [September 24, 2018, 12:29am UTC](https://forum.choiceofgames.com/t/cannot-open-file/44253 "2018-09-24T00:29:30Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![hexfur](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/hexfur/32/51894_2.png) [@hexfur](https://forum.choiceofgames.com/u/hexfur)\
**Post date:** [September 24, 2018, 12:29am UTC](https://forum.choiceofgames.com/t/cannot-open-file/44253/1 "2018-09-24T00:29:30Z")

</div>

Sp whenever I do a randomtest, it always ends the same way now (quicktest does this too). It says “Cannot open puremom.txt file”

I get this issue in CHoiceScript IDE & through the regular random/quicktesting

---

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [September 24, 2018, 12:32am UTC](https://forum.choiceofgames.com/t/cannot-open-file/44253/2 "2018-09-24T00:32:54Z")

</div>

Is the file in the scenesfolder? Is its name written the same way? Capitals etc?

---

<div class="post-metadata">

**Author:** ![hexfur](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/hexfur/32/51894_2.png) [@hexfur](https://forum.choiceofgames.com/u/hexfur)\
**Post date:** [September 24, 2018, 12:34am UTC](https://forum.choiceofgames.com/t/cannot-open-file/44253/3 "2018-09-24T00:34:53Z")

</div>

The file’s in the right place, nothings missing.

This is exactly what I get  
RANDOMTEST FAILED  
ERROR: couldn’t open file://E:/Choice Script/A Dog’s Life Revised/web/mygame/scenes/puremom’.txt  
RANDOMTEST FAILED: Error: Couldn’t open file://E:/Choice Script/A Dog’s Life Revised/web/mygame/scenes/puremom’.txt

---

<div class="post-metadata">

**Author:** ![catcat](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/catcat/32/73926_2.png) [@catcat](https://forum.choiceofgames.com/u/catcat)\
**Post date:** [September 24, 2018, 12:39am UTC](https://forum.choiceofgames.com/t/cannot-open-file/44253/4 "2018-09-24T00:39:22Z")

</div>

> [@hexfur](#):
>
> puremom’.txt

Is the quotation mark part of the name? You wrote puremon.txt at the beginning without it. Could be that?

---

<div class="post-metadata">

**Author:** ![hexfur](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/hexfur/32/51894_2.png) [@hexfur](https://forum.choiceofgames.com/u/hexfur)\
**Post date:** [September 24, 2018, 12:41am UTC](https://forum.choiceofgames.com/t/cannot-open-file/44253/5 "2018-09-24T00:41:16Z")

</div>

No, its just titled puremom in IDE & in the folder

---

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [September 24, 2018, 12:47am UTC](https://forum.choiceofgames.com/t/cannot-open-file/44253/6 "2018-09-24T00:47:47Z")

</div>

Could you search through your code if you accidentally wrote it with a ’ somewhere?

---

<div class="post-metadata">

**Author:** ![hexfur](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/hexfur/32/51894_2.png) [@hexfur](https://forum.choiceofgames.com/u/hexfur)\
**Post date:** [September 24, 2018, 12:52am UTC](https://forum.choiceofgames.com/t/cannot-open-file/44253/7 "2018-09-24T00:52:19Z")

</div>

Wow, I am really surprised at that. No wonder I missed it, it only showed up once in a random spot. Thanks guys!

---

<div class="post-metadata">

**Author:** ![MeltingPenguins](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/meltingpenguins/32/255855_2.png) [@MeltingPenguins](https://forum.choiceofgames.com/u/MeltingPenguins)\
**Post date:** [September 24, 2018, 1:04am UTC](https://forum.choiceofgames.com/t/cannot-open-file/44253/8 "2018-09-24T01:04:20Z")

</div>

Glad to help
