Issue to argument

Peter_1985 2,546 Reputation points
2022-03-31T06:47:54.807+00:00

Hi,
How to resolve issue below

Argument 1: cannot convert from 'string' to 'System.IO.Stream'

on this line?

using (StreamWriter sw = new StreamWriter(@"c:/cmp/list10.txt", allowappend, Encoding.Unicode))

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,362 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,130 questions
{count} votes

0 additional answers

Sort by: Most helpful