How can I check if the contents of a file and some words that were inputted are the same? I want to make some sort of activation system, where it will check if the contents are the same as the input.
Here's what I want to do:
using System.Collections.Generic;
using System;
using System.IO;
namespace Example {
public class Example() {
string input = Console.ReadLine();
if (input == File(@"/prodkey.txt") {
//code
}
}
}