N
N
noytmant2020-05-31 11:07:01
C++ / C#
noytmant, 2020-05-31 11:07:01

How to check a word from a textbook on a hosting?

In general, I do not understand how to implement this. I need to download a file and create the following check:

int b;
if(thisTextFile == "yes")
{
b = 1;
}
else
{
b = 0;
}

Here there is a check that if the word yes is written in the file, then the number b is equal to 1, if I write no in the text editor, then the number b will be equal to 0. Help me implement this =)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alex4answ, 2020-05-31
@alex4answ

What's the problem?
You yourself wrote a sequence of actions:
1. Download the file
2. Read it
3. Check the contents
Take and google each step, and that's it, they come here with a specific problem, more often having a non-working solution, and not with the whole task.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question