# Read SWF file code from C#.Net

**URL:** https://forum.kirupa.com/t/read-swf-file-code-from-c-net/286421
**Category:** Uncategorized
**Created:** [April 15, 2009, 9:26am UTC](https://forum.kirupa.com/t/read-swf-file-code-from-c-net/286421 "2009-04-15T09:26:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ahmy](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@ahmy](https://forum.kirupa.com/u/ahmy)
#### Post date: [April 15, 2009, 9:26am UTC](https://forum.kirupa.com/t/read-swf-file-code-from-c-net/286421/1 "2009-04-15T09:26:08Z")

</div>

I have an Asp.Net2 application using C# that allows users to upload SWF files in my site and i need to check if the SWF file contains specific two lines of code, if it contains it so i will alow the SWF file to be uploaded and if not exists i will need to insert this two lines of code in the SWF file.  
How can i read SWF file code from C# and update it can any one help me?  
Note:I need to read the content of the SWF file not the header  
and i know that to do that i have to decompile(disassemble) the SWF file then search in the decompiled code and i want to know hot decompile the SWF in C#
