224 Topics
|
|
I am trying to drag a program originally written in Borland C version 3 into the light of the present using Visual C++ 2010. I have a curious, apparently simple, problem. The program read data from a file. I can create a noddy program that opens and reads the contents … |
|
Ok I have another homework problem. Essentially I am to make a text file of randomized characters ( leters bothe upper and lower case, numbers, spaces and specialized characters) and import it as a string into my program. From there I am to make all lowercase letters uppercase. I think … |
|
I have saved a 2D matrix in a numpy file (.npy) in python. Is there a way I can access the same from C++ and possibly read in the values in a stl vector? [URL="http://www.scipy.org/C++_Extensions_that_use_NumPy_arrays"]This [/URL] is vaguely relevant. But here you make the call from python. I want to … |
|
Hy, I'm trying to read from a xml file and save it's data in an ArrayList then a HashMap my xml file looks like this: [code] <components> <component id="door1"> <bounds> <left>10</left> <top>5</top> <width>25</width> <height>10</height> </bounds> <properties> <propertie name="allignment" value="horizontal" /> <propertie name="orientation" value="top" /> <propertie name="isOpened" value="false" /> <propertie name="isLocked" … |
|
Hello I am currently trying to read specific data from a .hrm file and then display it within a form in c#. For example I want to read the date data from this file and then display it on the form. All I have managed to do is read in … |
|
I'm trying to run through a file and add each string in the file to a string array. My code yields the error "Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 at StudentLAM.main(StudentLAM.java:14)" Why doesn't this work? Note: I cannot use ArrayList. My error-yielding code: [CODE] private Scanner index; int cell = … |
|
hello all.. Hi, I'm having problem to read *.DBF (DBase File) using VB.NET. Below is my code : [code] Public abc As String = "C:\Documents and Settings\LASIM\My Documents\20100126a\JADUAL\TCMSV2" Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim sql As String Dim connection As String Dim dsXML … |
|
Hello everyone, I have successfully WRITTEN an array of complex numbers into .txt file using fprintf and scanf(). However, I have no idea how to READ this file. Please see the attached code and reply with your suggestions. Thank you in advance!! Joelem [CODE] #include<stdio.h> #include<stdlib.h> #include<math.h> #include<complex.h> int main() … |
|
How to read only integers from a file in java? Suppose the file has something like this: (14,2,3),(2,3,4) (2,6,78) Now I want to read only the integers not the brackets and commas.How do I do it? |
|
I have a text file with the following numbers: 1 2 3 4 5 6 How do I read each individual number into an array? It needs to move along each row so read in 1, 2 and then 3 into a array of 6 integers. Then move to the … |
|
How would I go about copying a robots.txt file from a webserver and then displaying that information? |
|
What my question is, Is it plausible to have a listview item search a specific folder that has nothing but text files in it, pull the first 2 lines from the text file(s) and display them in columns 1 and 2 if so, how would one go about doing it, … |
|
I am trying to create a windows form using visual c++. I type the variable value in the text box in windows and read it in by clicking a button. The variable is now stored in the form1.h header file. I want to use that variable in the my_proj.cpp code, … |
|
Hi people, I'm trying to make a program that reads and counts words and their frequency. After a few days trying I just make the program read a text, counts the words and everything BUT just if there's no more than one ' ' space character at a time. And … |
|
hey guys! how can I read strings from a file? Like... They will compose part of the interface... something like, read a string from a file, then this string points to a image that will be used in a picture box, as same as a label that will be shown … |
|
I am reading bytes from a FileStream. When I try to read 0x8000 bytes from the file (which are there) it says: "Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection." … |
|
Dear All , The question is quite simple for all of you . I have a binary file . A description for this file says that : "first 2 bytes in the header is the number of records" I have opened this file and loaded it into bytes by this … |
|
Dear All , I have a gps logger which store the gps data into its internal memory .I have a description file for the data format and how to send commands to the logger to get data . this file is present at the following website L [url]http://www.rigacci.org/wiki/lib/exe/fetch.php/doc/appunti/hardware/gps/mtk_logger_library_user_manual_1.2_tsi.pdf[/url] I need … |
|
Hi all, So I have reached a kind of impasse on my current project. I'm trying to make a program that can function like a phone book, loading information from a file into a binary search tree and performing operations on said information. The issue I'm having appears to be … |
|
hello. I want to know how to read, write, and save databases. with control and virtually. i have seen some tutorials about databases they just don't help me. thank you |
|
Hi everyone.... I want to develop a music lexicon (tyoe band name --> give description) and I want to add terms (bandName and description) I use ArrayList but I want to change. I have also the code that read a [B]text [/B]file (bands.txt) but I dont know haw it works... … |
|
i write a function in c++ that take the name of obj file ... can you help me by tell9ing me how to read data using "in" and why his problem occur |
|
I have a set of text files in a folder. I want to read each file, convert the contents of the file to lowercase, remove punctuations and save them all in another directory with the same filenames. How can i do that??? |
|
I am Creating a MFC Application to Read a Text file into a Edit Box. I am implementing the following code [CODE] FILE *m_pFile ; CString m_strLine , m_strText; char line [1000] = "" ; m_pFile = fopen ( "C:\\SELF.txt" , "r" ) ; if ( m_pFile != NULL ) … |
|
Trying to write a simple program that will read data but keep stumbling upon the fact that I kinda can't limit the amount that is read. I have simple student.dat file which is filled ATM with nothing else but simple string "somethinginside", without quotes. When I do this on each … |
|
I'm making a program that accept 1 character long strings (and ignores spaces " ") until a user presses return/enter. So far I have, [CODE] int main(){ char expression[1]; while ((scanf("%s",expression)) != EOF){ //code } return 0; } [/CODE] it is assumed that the user is entering single digit strings … |
|
The above classes provide an interface for reading the PHP session data. PHP alone only gives you access to the current users session. This class allows you to read all session files, and thus allow you to read session data across different users. This may be useful if you want … |
|
Hello all, I have a text file called: concentrations.dat The file contains a lot of different data. Here's the data that I'm interested in: # ET: list of elements <ET> 'Cu' 'C' 'Sr' 'He' 'Mg' 'O' 'Cr' What I want to do is read the elements into a vector called … |
|
I am going to try to explain this the best I can I didn't develop the original version of this, or the part that rights it to the database. in our company, there is a program that takes PDF files and stores them in our mysql database as blobs. The … |
|
Hello everyone: I'm a C++ newbie. I have written code for performing calculations that needs data from another code. These data are in text files. I know how to read in an ENTIRE text file, but I can't figure out how to extract certain pieces of it. I would very … |
The End.