Creating dummy files..

  • Thread starter Thread starter Vicky
  • Start date Start date
V

Vicky

Hi,

Is there any tool or C# sample code, which can create dummy source
files of various extensions like .js, .xml, .cs etc any in various file
sizes on a network share? I need these files for testing Archive and
Restore.

Thanks,
Vicky
 
Vicky,

Not that I know of. When you create these files, they can just have
zero bytes, but I don't think they will be interepreted correctly if you try
and open them (you would have to have something to generate specific content
for each type).

If you are looking to just take up space, it is really easy to just open
a FileStream and set the length, or write away...

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top