读取文件中的音乐名,合并音乐(MP3)
来源:互联网 发布:中文域名在线转码 编辑:程序博客网 时间:2024/05/17 08:30
package Three;
import java.io.*;
public class MergeFile {
public static void main(String args[])
{
FileOutputStream fos=null;
FileInputStream fis=null;
String fileNames[]=new String[2];
File file=new File(“F:\mp3.list”);
String line=null;
String po=null;
String tmp[]=new String[2];
int a=0;
int j=0;
int l=0;
byte by[]=new byte[1024*8];//8K
try
{
fos=new FileOutputStream(“F:\合并.mp3”);
BufferedReader br = new BufferedReader(new FileReader(file));
while((line = br.readLine())!= null){ //一次读取一行
fileNames[j++]=line.replace(“./”,”“);
}
for(int i=0;i<2;i++)
{
fis=new FileInputStream(new File(“F:\”+fileNames[i]));
while((a=fis.read(by))!=-1) { fos.write(by,0,a); } } } catch(FileNotFoundException e) { e.printStackTrace(); } catch(IOException e) { e.printStackTrace(); } finally { try { fis.close(); fos.close(); } catch(IOException e) { e.printStackTrace(); } }}
}
- 读取文件中的音乐名,合并音乐(MP3)
- android剪切合并MP3音乐
- android剪切合并MP3音乐
- android剪切合并MP3音乐
- Unity播放音乐(MP3)
- SdCard读取文件和音乐
- IOS 播放本地音乐(播放内存卡中的MP3) 及 文件的写入
- IOS 播放本地音乐(播放内存卡中的MP3) 及 文件的写入
- 前端获取QQ音乐(mp3+m4a)
- MP3音乐裁剪工具
- MP3音乐播放器
- 播放音乐MP3
- 【音乐拼接】mp3格式
- pygame加载MP3音乐
- mp3 音频 音乐 tag ID3 ID3V1 ID3V2 标签 读取信息
- 通过Java获取百度音乐API中的MP3链接
- 毕业设计(音乐播放器)之二(MP3文件标签解析)
- 也说alsa音乐播放(mp3文件从零开始)
- Exception raised during rendering: java.lang.System.arraycopy([CI[CII)V
- 华为实习生在线笔试
- ~闰年~
- 洛谷 1330 封锁阳光大学
- Java面试 -- JVM篇
- 读取文件中的音乐名,合并音乐(MP3)
- HTML干货系列!html基础日记!
- Red and Black POJ
- 【BZOJ 4318】[概率DP]OSU!
- java建立一个类时为什么设置private static final long serialVersionUID??
- 理解进程,线程概念
- 《ACM程序设计》书中题目―K
- rem单位的使用总结
- select和epoll