Note that there are some explanatory texts on larger screens.

plurals
  1. POZip File Entry has custom file extension. C# claims it cannot open
    primarykey
    data
    text
    <p><strong>Solution Found.</strong></p> <p>Thanks to everyone helping me, I found out what the root problem was. The .trl file had nothing to do with it. It was the path being created wrong. I was doing "TRLR" + Path, when it should have been "TRLR" + fileName. This was a stupid error on my part, and I apologize for wasting your time, but I appreciate the help!</p> <hr> <p>I have a zip file given to us by a 3rd party. In this zip files are custom files. These are just text files with a different extension, which I assume is just to frustrate me.</p> <p>I'm trying to open this files in my C# application, but it keeps throwing the error that the format is not supported. </p> <p>Since these are just text files, I feel there must be some way for this to happen. </p> <p>If anyone has any ideas, please let me know.</p> <p>Code:</p> <pre><code>using (ZipArchive archive = ZipFile.OpenRead(_trailerName)) { ZipArchiveEntry entry = archive.GetEntry(tableChanged + ".trl"); Stream ms = entry.Open(); //Here is what's causing the issue. StreamReader reader = new StreamReader(ms); string allLinesRead = reader.ReadToEnd(); string[] everyCell = allLinesRead.Split('|'); int numRecords = Convert.ToInt32(everyCell[1]); int numChanged = getRecordNum(tableChanged); Console.Write(numRecords + "/" + numChanged + " - " + tableChanged); if (numChanged != numRecords) { _errorMessage += "Records updated do not match trailer. (" + numRecords + "/" + numChanged + ") Please check database. Table affected: " + tableChanged + Environment.NewLine; } } </code></pre> <p>Error:</p> <p><code>The given path's format is not supported.</code></p> <p>I know this is specific, but I need advice on what steps I can take to resolve this.</p> <p>Thanks.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload