zoukankan      html  css  js  c++  java
  • M3U文件格式

    1、M3U文件只有在ANSI格式下方可正常播放。

    2、但在C#中字符串默认格式均为UTF-8格式

    3、格式转换实例

            FileStream fs = new FileStream(PlayPath, FileMode.OpenOrCreate, FileAccess.Write);

            StreamWriter sw = new StreamWriter(fs,Encoding.Default); //使用默认ANSI格式

            //StreamWriter sw = new StreamWriter(fs); //使用默认UTF-8格式 

            try

            {

                sw.WriteLine("#EXTM3U");

                FilePath = SqlDB.GetFirstValue("select filepath from xldata where djbh='" + djbh + "'");

                sw.WriteLine(FilePath);

                sw.Flush();

            }

            finally

            {

                sw.Close();

                fs.Close();

            }

  • 相关阅读:
    语文成语的积累
    关于翻译
    关于文常
    语文小说
    语文 散文阅读
    矩佬的博客
    字词
    语文病句
    地理
    寒假某cg的数学卷子....
  • 原文地址:https://www.cnblogs.com/easypass/p/1686939.html
Copyright © 2011-2022 走看看