RSS
 

Japan: Kurazushi Tsukuba

16 Jun

These are pictures of Kurazushi Tsukuba. They don’t use additives or preservatives. Each plate is 105¥. For Every 5 plates you play a game and if you win you get a ball in which there is a caracter of the Kura Village. It is very funny and yammy.

 
2 Comments

Posted in Japan

 

C++: Delete or remove a file

15 Jun

To delete or remove a file in C++ you can use the remove function from stdio.h like follows:


#include 

int main(){ if(remove("myfile.txt") == -1)

    fprintf(stderr,"Remove failed");

// your code .......

}
 
No Comments

Posted in C++

 

PHP: Append content to file

14 Jun
$myFile = "testFile.txt";
$fh = fopen($myFile, 'a') or die("can't open file");
$stringData = "New Stuff 1\n";
fwrite($fh, $stringData);
$stringData = "New Stuff 2\n";
fwrite($fh, $stringData);
fclose($fh);
 
No Comments

Posted in PHP

 

PHP: String token for string split

14 Jun
< ?
$token = strtok($string,",");
while($token){
  print($token . "");
  $token = strtok(",");
}
?>

[ad#AdBrite inline]

 
No Comments

Posted in PHP

 

PHP: Get rows of a CVS file

14 Jun

If we have a CVS file containing this type of data: user:test state:good … [code="php"] < ?php $delimiter = ":"; // in Uncategorized