ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,212 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello,
When I want to use these lines I encounter a red line under seek and copy to. And
Warns me up "Are you missing a directive"?
What should I do?
var state = _instaApi.GetStateDataAsString();
using (var fileStream = File.Create(stateFile))
{
state.Seek(0, SeekOrigin.Begin);
state.CopyTo(fileStream);
}
Thanks,
I think that you should do this:
var state = _instaApi.GetStateDataAsString( );
File.WriteAllText( stateFile, state);