|
by: lucas |
last post by:
I have a text file that i would like to use PHP to read from. each line
ends with a \n. i need to read from the beginning of the line, only upto
that \n
right now i'm using this, which is sloppy and slow:
if ($chr = fgetc($file)) != "\n") { }
which of course reads in one byte at a time till the end of line. is there
a better way?
--
|
by: Astra |
last post by:
Hi All
Could you please let me know how my ASP page can insert 1 row of data
containing line breaks into a MySQL DB.
To explain, I'm using ASP Classic > MyODBC 3.5x (Win) > MySQL 4 (Win) and my
insert command is:
INSERT INTO `WEBCONTENT` (CONTENTTEXT) VALUES ('Order Number:
Account Number:
|
by: kevin arana |
last post by:
Hello.
Could anyone please show me an example of how to retrieve a specific line of
a text file (say line 3 of data.txt) into a string variable?
I have seen many examples on how to dump all the content into a string, and
how to read line-by-line consecutively, but how can i read just 1 specific
line?
Thank you.
|
by: alice |
last post by:
I'm doing some text swapping with javascript, got it working fine, but
I would like the line to have line breaks and being a beginner, I
don't even know if this is possible.
So I have a line like this
swaptext('Shaun, Greg, Violet, Joel, 1999')";
and I would like 1999 to be on a new line. Is there a simple way to do
this? I'd swear I've seen...
|
by: jeepers |
last post by:
Hi all,
my problem is delete a line in a text file.
the file contain -n line with user, userCode.
i want to replace the line with user is egual at user, and/or insert new line but delete the line like user.
i'm sorry for my english :D
if user exist delete a line of the user and insert new line.
if not exist insert new line.
possibility...
|
|
by: Johnymap |
last post by:
Hi everyone.
The text file i am using has the following format:
"2001_1.rtf" (1 January 2001) Ookame v Tombale (CCF No. 203 of 2001) BWHC 1
"2001_2.rtf" (1 January 2001) Kgaimena v Leoifo (MISCA F.572 of 2001) BWHC 2
"2002_1.rtf" (7 June 2002) Olebeng v The State (C A No. F104 of 2001) BWHC 1
"2003_1.rtf" (1 January 2003) Sebogodi v...
|
by: Patrick David |
last post by:
Hello NG,
I am searching for a way to jump to a specific line in a text file, let's
say to line no. 9000.
Is there any method like file.seek() which leads me to a given line instead
of a given byte?
Hope for help
Patrick
|
by: kashif73 |
last post by:
i have a text file which has a fixed length lines. How can I update a particular line (record ) basing on a record ID provided? below is my code which retrieves a particular line from the textfile & display it in xtboxes in my update form.:
If System.IO.File.Exists(FILE_NAME) = True Then
Dim fs As New FileStream(FILE_NAME, FileMode.Open,...
|
by: rahulsapra |
last post by:
hello everyone
m new to j2me plzz help
I have a text file that contains data line by line..
format is :
response:<some text><space>Pin:<some text><space>time:<hh:mm:ss>
eg
response:invalid pin Pin:1111 time:04:04:16
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
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. ...
|
|
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...
|
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
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...
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
|