Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

C# system dont let write txt file

var sourceFile = "text.txt";
var targetFile = @"C:UsersTomasDesktopMovieStarzMovieStarzWriteText.txt";
var id = App.Moviess.Filmerna[index].id.ToString();

var lines = File.ReadAllLines(sourceFile)
    .Where(l => l.Contains(id))
    .ToArray();

File.AppendAllLines(targetFile, lines);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #system #dont #write #txt #file
ADD COMMENT
Topic
Name
7+6 =