Showing posts with label file. Show all posts
Showing posts with label file. Show all posts

Wednesday, May 16, 2012

PHP - Include Cross Domain File

<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://www.domain.com");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_exec($ch);
curl_close($ch);
?>

Monday, February 13, 2012

iPhone/iPad Splash Screen File Names


Default File Names for Individual Orientation of Device:
  1. Default-Portrait.png
  2. Default-PortraitUpsideDown.png
  3. Default-Landscape.png
  4. Default-LandscapeLeft.png
  5. Default-LandscapeRight.png

Wednesday, August 10, 2011

How to Find All Email Address in a Text File





using System.Text.RegularExpressions;
using System.IO;

string FileData = File.ReadAllText(fileName);

Regex emailregex = new Regex("(?<user>[^@]+)@(?<host>.+)");
MatchCollection matches = emailregex .Matches(FileData);
foreach (Match match in matches)
{
      Console.WriteLine(match.Value.ToString());
}