O'Reilly logo

Beginning ASP.NET 3.5 in C# 2008: From Novice to Professional, Second Edition by Matthew MacDonald

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

18.1. Files and Web Applications

Why is it that most web applications don't use files? There are several limitations to files:

File-naming limitations

When you create a new file, it obviously can't have the same name as an existing file in the same directory. That means you'll probably need to fall back on some system for randomly generating files names. For example, you might create a file name based on a random number combined with the current date and time, or create a file name that incorporates a GUID (globally unique identifier). With both of these approaches, file names would be statistically unique, which means duplicates would be extremely unlikely. However, the file names wouldn't be very meaningful. In databases, this problem is ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required