惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

IT之家
IT之家
腾讯CDC
博客园 - Franky
S
SegmentFault 最新的问题
美团技术团队
阮一峰的网络日志
阮一峰的网络日志
J
Java Code Geeks
Y
Y Combinator Blog
Engineering at Meta
Engineering at Meta
Microsoft Security Blog
Microsoft Security Blog
MongoDB | Blog
MongoDB | Blog
I
InfoQ
T
Tailwind CSS Blog
Hugging Face - Blog
Hugging Face - Blog
B
Blog RSS Feed
博客园 - 叶小钗
博客园_首页
有赞技术团队
有赞技术团队
雷峰网
雷峰网
量子位
小众软件
小众软件
月光博客
月光博客
U
Unit 42
D
DataBreaches.Net

博客园 - tecsun

Base64 Encode and Decode - BCB[转] BCB 控制 Excel类[转] char * 与 wchar_t *(BSTR) 转换 Borland IDE 常用热键简介 WINXP总是默认以Administrator登陆系统,怎样让自建用户启动 [轉]MD5算法(C++实现) [轉]MYSQL 字符集问题 [轉]mysql多种存储引擎及特点 MySQL date/time 不能转换为 System.DateTime的问题[VS2005(C#)+mysql] mysql 相关 [转]写得蛮好的linux学习笔记 VS2005中使用mysql 在ubuntu下使用qq[转] [轉自ccrun by dewbow ] BCB和TTS5.1做中文语音 [C++]BCD碼轉換問題 [轉]我们必须了解的8个dos命令(转自http://www.hxblog.net/article.asp?id=491) [C#][轉]字符转ASCII码,ASCII码转字符 控制外部應用程式的一些記錄(C++) [轉]窗口句柄的获得
分割字符串(BCB)(從文本文檔中取出需要的字符串)
tecsun · 2007-05-15 · via 博客园 - tecsun

  TStringList *StrLst;
  StrLst=   new TStringList();
  StrLst->LoadFromFile("D:\\PanelTest\\071900007");     //找到原文件
  String Str_temp;
  for (int i = 0; i <= 1000; i++)
  {
  StrLst->Strings[i];

  if(Pos(UpperCase("Pass"),UpperCase(StrLst->Strings[i])) != 0 )
    {
   //    ShowMessage( StrLst->Strings[i] + "在"+ i + "行");

     Str_temp= StrLst->Strings[i];                   //找到所要解析的行數
   break;
    }
   }
   TStringList *StrLst1=   new TStringList();
   StrLst1->Delimiter='\t' ;                    //分隔符
   StrLst1->DelimitedText = Str_temp;           //要分割的字符串
   String Str1= StrLst1->Strings[0] ;           //取出分割好的字符串
   String Str2= StrLst1->Strings[1] ;