473,549 Members | 2,584 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

analiza pliku tekstowego

sjf
Witam wszystkich,

mam program, który czyta plik tekstowy wiersz po wierszu
program ma sprawdzać czy w wierszu obecnie wczytanym do pamięci występuje
konkretny ciąg znaków, jeżeli tak to ma ten wiersz skopiować do nowo
utworzonego pliku
w jaki sposób uzyskać wyszukiwanie wzorca?
pytanie dodatkowe: czy da się potraktować dwa kolejne wiersze jako jeden
(wiem, że w konkretnym przypadku jest to jeden wiersz tyle tylko, że
przełamany), tzn. program wczytując wiersz "wie", że jest on przełamany i
trzeba wczytać jeszcze kolejny...?

pozdrawiam
sjf
Jul 18 '05 #1
1 2598
sjf
> Witam wszystkich,

mam program, który czyta plik tekstowy wiersz po wierszu
program ma sprawdzać czy w wierszu obecnie wczytanym do pamięci występuje
konkretny ciąg znaków, jeżeli tak to ma ten wiersz skopiować do nowo
utworzonego pliku
w jaki sposób uzyskać wyszukiwanie wzorca?
pytanie dodatkowe: czy da się potraktować dwa kolejne wiersze jako jeden
(wiem, że w konkretnym przypadku jest to jeden wiersz tyle tylko, że
przełamany), tzn. program wczytując wiersz "wie", że jest on przełamany i
trzeba wczytać jeszcze kolejny...?

pozdrawiam
sjf


I'm sorry, not this group
:(
Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
2043
by: Piotr Wolski | last post by:
hello, as always i have a problem:-) i'm using HTML form. User is adding some date to this form and after that i'm generating plot. When plot is generated i can see en empty form and a plot. I want to see filled in form and a plot. don't know why i'm loosing all the data. when user adds data to the form i'm doing something like that:
3
2171
by: Faree | last post by:
Hi, I am a PHP Developer.can any one help me on image upload and display of that image.what i want is uploading an image to a directory ,displaying of that image as a thumbnail.when i click on that image the image should be diplayed in another page. I wrote code for image uploading and as well as display code.but i couldn't write...
4
4062
by: sun6 | last post by:
this is a program counting words from "text_in.txt" file and writing them in "text_out.txt". it uses binary tree search, but there is an error when i use insert () thanks for any help #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h>
5
2669
by: PawelR | last post by:
Hello group, I my apps I have two dataGrids - dgParent, dgChild to show rows from two tables. Tables are relations one to more in dataBase. I use sqlDataAdater (sdaParent, sdaChild) to fill myDS. DataSource in dgParent I have set myDS.Tables (for dgChild myDS.Tables); My questions: How show in dgChild only rows where show only child for...
0
1029
by: Dzemo | last post by:
i use this code to get data into dataset cmd.CommandType = CommandType.Text cmdUpdate.CommandType = CommandType.Text cmdUpdate.CommandText = "Update BigOne Set Rezultat=? where ID=?" cmdUpdate.Parameters.Add("Rezultat", OleDb.OleDbType.Char, 30, "Rezultat")
0
991
by: wolf2300 | last post by:
readline method and national charset problem hi how can i copy line from text file which contains polish characters. i use readline method from StreamReader class but it doesn't copy polish characters :( what shall i do ?? this is a code how can i change it to works the same way
6
2129
by: s_4 | last post by:
Hello! Sorry about my english - I write to you from poland. I have strange problem. Bind() return '16'. Documentation say that it should return 0 (no error) or -1 (some error). Here is the code of client. //klient //stale #define PORT_UDP 14345
1
3057
by: sg_pl | last post by:
Witam szanownych grupowiczów, mam pytanie odnośnie aplikacji dla PPC. Otóż jedna z firm, która pisze dla nas oprogramowanie chce napisać nam program na urządzenia PPC dla naszych nazwijmy to handlowców. Nasz schemat systemu jest następujący: Lokalizacja1: Serwer Linux z bazą Postgres -system informatyczny takich lokalizacji mamy kilka,...
3
2434
oll3i
by: oll3i | last post by:
i want in my ejbCreate() to create the database , tables and populate the tables is it allowed? my ejbCreate() connects to the database but it does not create the tables public void ejbCreate() { System.out.println("Inside ejbCreate"); Connection connection = null;
0
7723
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7965
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7483
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7817
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5375
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5092
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3504
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1949
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1063
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.