Ask coding questions

← Back to all posts
Question
Hackerboi1234 (0)

Can someone explain to me how the file system in repl.it works?I mean, I always create a new file and try to compile it but it shows main.cs has more than one entry point...

Commentshotnewtop
eankeen (653)

hi!

if you provide some more details, maybe we can help you a bit better

when i run the repl, i am not getting any errors, but output that i expect after reading the code in main.cs. are you compiling the file with your own command and introducing special flags, or doing something special?

Hackerboi1234 (0)

@eankeen Thank you for your concern! I mean that, suppose my main.cs has a code to print hello world, and I create another file (Let us call it x) and put some code in x and Run it, it prints the output of main.cs, not the output of x.

As you can see , the file x is actually named More than one class (I don't know if you can access it....)

eankeen (653)

@Hackerboi1234 oh! i see what you are saying.

yeah, thats supposed to happen. every time you click "play", it runs main.cs. there really isnt a good way to change that. i would recommend putting your "x" file in another repl

hope i was able to help 😜