Last post Sep 04, 2014 09:50 AM by StefanoIta
Sep 04, 2014 04:15 AM|StefanoIta|LINK
I am reading a directory containing two video files, the two files are the same just change the name.
The first time this is done ReadText = System.IO.File.ReadAllText (FullName); The program takes about 10 seconds,
when it goes to the next video, I get stuck and do everything in practice crash in visual studio.
I do not understand why can you help me?
Ps the video files are about 500mb
PPS sorry for my bad english
Sep 04, 2014 05:32 AM|ignatandrei|LINK
1. You read the video as text, when there are bytes
the video files are about 500mb
3. Look into event viewer - some errors there?
4. Why you are reading the video as text?
Sep 04, 2014 09:16 AM|StefanoIta|LINK
i think the probelm was file, For safety, I also included this
readText = System.IO.File.ReadAllText(FullNomeFile);
I would now like to replace an older text within the file and save it.
I have tried so
File.WriteAllText(Path.Combine(txtDestinazione.Text, NomeFile), System.IO.File.ReadAllText(FullNomeFile).Replace(DataAcquizisioneAfter,DataAcquizisioneBefore));
the saved file has 772,718 rows, the original file 27718, because I have all these extra lines.
If I do I edit the file from notepad and save it, there is no problem, I would do the same thing with c #
Sep 04, 2014 09:36 AM|MetalAsp.Net|LINK
My question is this: if they are video files, should you be using ReadAllText?
"Opens a text file, reads all lines of the file into a string, and then closes the file":
Sep 04, 2014 09:48 AM|StefanoIta|LINK
ok, so it seems to work
readText = System.IO.File.ReadAllText(FullNomeFile, System.Text.Encoding.Default);
Sep 04, 2014 09:50 AM|StefanoIta|LINK
I need to change the date "media item creation" tab ORIGIN properties.
The only way I found was this.