Hi Frenz,
Am working on CSV files. I am trying to read batch of records from a CSV file, which contains records in the following manner.. -
1,'KS010','S',09,345
-
2,'KS011','S',09,346
-
3,'KS012','S',09,347
-
4,'KS013','S',09,348
-
01,'AS010','S',09,345
-
02,'AS011','S',09,346
-
07,'AS012','S',09,347
-
08,'AS013','S',09,348
-
am trying to read the records in a dataset and then on send the stockistcode (KS010...,AS010 ) to the table. But while reading the records, with the above pattern, i retrieve a dataset which removes the KS0(zero) from those stockistcodes that starts with 'KS'. and in the other batch am able to get the code fully as ASO10,AS011,... .
I want to get the full code, without any filter so that i can work on the same in the backend.
This is urgent and it would be greatly helpful if i am guided.
1 980 vanc 211
Recognized Expert New Member
It's hard to figure out what you are trying to do. May you make it a bit clearer, so it's easier to get solution.
cheers.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: deko |
last post by:
Do I need to use flock() when reading a file into an array? It's possible that
the file in question could be open at the time the file('filename') request is
made. I realize flock() is required when opening a file with fopen() when there
is contention for the file:
$fp=fopen($ctr, 'w');
//only write if we can get lock on file
if (flock($fp, LOCK_EX))
{
fwrite($fp, "0");
|
by: Lionel B |
last post by:
Greetings,
I need to read (unformatted text) from stdin up to EOF into a char
buffer; of course I cannot allocate my buffer until I know how much
text is available, and I do not know how much text is available until I
have read it... which seems to imply that multiple reads of the input
stream will be inevitable.
Now I can correctly find the number of characters available by:
|
|
by: Oliver Knoll |
last post by:
According to my ANSI book, tmpfile() creates a file with wb+ mode
(that is just writing, right?). How would one reopen it for reading?
I got the following (which works):
FILE *tmpFile = tmpfile();
/* write into tmpFile */
...
|
by: archana |
last post by:
Hi all,
I am new to asp.net (learning phase).
I have to develop application in asp.net to read file from client pc
and display statistics of that file to client.
So my question is that to read file from client pc do i need to upload
that file on server and then start reading that file.
Or is there any other alternative for this.
|
by: C# to XML |
last post by:
Hi Friends,
I am new to csharp , I am using the following code to write into xml file :
Just go through the code :
fp = File.OpenText(Server.MapPath(".\\upload\\") + "test.txt");
string info = fp.ReadToEnd();
| |
by: ramesh9999 |
last post by:
Hi all,
I am new to perl and xml ...
Can anyone help me out to read an xml file and write it to text file.
|
by: miss time |
last post by:
Hi all,
my java friends ^-^
I have next week quiz in reading file text ,and understand the topic very well.
can any one give some question related to this topic .this help me more to understand
thanks a lot and sorry for inconvenience..
|
by: Coldfire |
last post by:
Hi,
The strange problem i am having is,
the input element of type='file' not reading file names after 20 file elements. It simple returns null on reading the 'name' of file.
The code is simple and has no error as I am testing it standalone
|
by: bjoarn |
last post by:
I have an Application C# handling file reading, building index on this file, using dll wrapped with SWIG. The dll is originaly programmed in C++.
Dll reports back to the the C# programm throug callback/delegates. Among others, it reports index building(%). One callback function can receive (stop order) to stop reading file/building index. How ever i do not know how to keep the stopbutton activ while this file reading is going on.
I have...
|
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 usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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: 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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |