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

推荐订阅源

T
Tailwind CSS Blog
博客园 - Franky
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Y
Y Combinator Blog
Hugging Face - Blog
Hugging Face - Blog
博客园 - 聂微东
L
LangChain Blog
博客园_首页
Recent Announcements
Recent Announcements
月光博客
月光博客
酷 壳 – CoolShell
酷 壳 – CoolShell
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
H
Hackread – Cybersecurity News, Data Breaches, AI and More
爱范儿
爱范儿
博客园 - 叶小钗
博客园 - 【当耐特】
The Cloudflare Blog
J
Java Code Geeks
G
Google Developers Blog
云风的 BLOG
云风的 BLOG
Blog — PlanetScale
Blog — PlanetScale
博客园 - 司徒正美
aimingoo的专栏
aimingoo的专栏
A
About on SuperTechFans

博客园 - 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] ;