Sono un principiante nella programmazione C#. Sto ottenendo l'errore The name 'File' does not exist in the current context
.Il nome "File" non esiste nel contesto attuale
problema deve essere in prima linea var v = File.ReadLines("dictionary.txt");
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication7
{
class Program
{
static void Main(string[] args)
{
if (args.Length > 0)
{
var v = File.ReadLines("dictionary.txt");
per favore, non downvote. Lui è un principiante. Dovydas, otterresti la risposta alla tua domanda controllando il suggerimento che Visual Studio offre nell'intelligenza. Questo suggerimento, collegato all'errore, ti dice che potresti mancare un inclusivo. Probabilmente ti dirà anche cosa includere. – Rafa
Semplicemente aggiungi System.IO ... –