In addition to music information, an MP3 song also contains information such as the song name and singer. Next we will automatically read the song information through c # programming.
Using System;
Using System. Collections. Generic;
Using System. Text;
Using System. IO;
Using Egacn.com;
Using WatchStylish.com;
Using Study.pctoday.net.cn;
Namespace ConsoleApplication2
{
Class Program
{
Static void Main (string [] args)
{
Byte [] B = new byte [128];
String sTitle;
String sSinger;
String sAlbum;
String sYear;
String sComm;
FileStream fs = new FileStream (@ "E: My Documents my music \ new the day we first met-Comet Shen (http://study.pctoday.net.cn/3_Visual+Studio.aspx alimail", FileMode. Open );
Fs. Seek (-128, SeekOrigin. End );
Fs. reads (B, 0,128 );
Bool isSet = false;
String sFlag = System. Text. Encoding. Default. GetString (B, 0, 3 );
If (sFlag. CompareTo ("TAG") = 0)
{
System. Console. WriteLine ("Tag is setted! Replica Watches ");
IsSet = true;
}
If (isSet)
{
// Http://study.pctoday.net.cn/3_Visual+Studio.aspx
STitle = System. Text. Encoding. Default. GetString (B, 3, 30 );
System. Console. WriteLine ("title:" + sTitle );
// Exclusive Replica Rolex Watches;
SSinger = System. Text. Encoding. Default. GetString (B, 33, 30 );
& Nb