using UnityEngine;
using System.Text;
using System.Collections.Generic;
using System.IO;
using System.Text.RegularExpressions;
public class AnalysisIMEICode : MonoBehaviour
{
public TextAsset m_TextData;
List
m_ArrayData;
byte[] mBuffer;
int m_Postion = 0;
public AnalysisIMEICode() { }
bool canRead { get { return (mBuffer != null && m_Postion < mBuffer.Length); } }
void Start()
{
if (m_TextData != null)
{
m_ArrayData = new List
();
mBuffer = m_TextData.bytes;
//m_ArrayData.Clear();
while (canRead)
{
string lineStr = ReadLine();
FindIMEINumber(lineStr);
}
PrintIMEICountData();
}
}
string ReadLine(byte[] buffer, int start, int count)
{
#if UNITY_FLASH
#else
retur
使用unity自带类行加载.txt 文件
最新推荐文章于 2024-06-14 16:56:52 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)