224 Topics
|
|
Hey there, I'm having trouble getting my program to read the last instruction of the file, and so far, I haven't been able to figure out why. Any help would be appreciated. [CODE]/* The Simpletron Machine Language Program. The purpose of this program is to simulate a primitive computer. This … |
|
Hello DaniWeb, This is my first real assignment and am having problem with it. The program must accept a userID and pass from user. The program must also read the userID and pass from file and if it matches the one on file, the program must display success message. The … |
|
I used this to write the matrix into a file: int Nx, Ny, Nz; Array <complex<float>, 3> matrix(Nx, Ny, Nz, ColumnMajorArray<3>()); ...get matrix data... fstream outbin(outname.c_str(),ios::out|ios::binary); outbin.write(reinterpret_cast<char *>(matrix.data()),sizeof(complex<float>)*Nx*Ny*Nz); outbin.close(); Then, I used this to read this matrix, works fine, values and orders are correct too: Array <complex<float>, 3> matrixb(Nx, Ny, … |
|
Helo Guys, i need your help, because i am searching code to read string in assembler, but i can't found nothing if you can help me, thaks!!! |
|
Hi all, Going mad not being able to figure this out. I have an application that uses the following code to write a number of user inputed variables to a text file on a seperate line per variable.. What I can figure out despite hours of googling, is how to … |
|
I am trying to write a program that will read values from spreadsheets and stuff and I know I need to use CSV files instead of Excel files and stuff, but say I want to just read a single entry at a specific coordinate how do I access that one … |
|
Hi, I am new to C++ and am getting stuck with just reading in data from a text file into an array. I have looked at lots of examples online, but can't find one that matches what I am trying to do. The data consists of two variables, date and … |
|
I got a new computer running on Windows 7. It read my USB for about 5 weeks untill it just would not apear in computer. Every thing I own is on my USB, because I don't have anything on my computer because it has not disk space! I have to … |
|
Hello I have this problem in pascal: I want to include a variable in file name while assigning a text file to variable of textfile. Example: I have a text file called 'numoffiles.txt' with one integer number in it I read it and set variable a to that number in … |
|
Hello every one, I am new in C++ and I have a new project. I have a text file with numbers that are coordinates x,y The text files´s format looks like this: X Y 234 5678 343 3456 193 235 and so on Steps, 1.- Put all this file in … |
|
|
hey, I have tried many methods to save my datagridview contents to a file but with no luck does anybody have a good method for xml to datagridview, datagridview to Xml, or any other methods to read/write a datagridview |
|
I've searched the C++ forums and cannot find anything that relates to my question. I am writing a program (for class) that opens a txt file and reads doubles from the file, then computes the standard deviation of the numbers in the file. In order to do this, I am … |
I am coming from c++ and its nice STL. In C++ I could do this [CODE=C++] <include> string ... ... int nMyInt = 5; string sMyString; sMyString[5] = "b"; [/CODE] Ive tried this approach in c# but doing this way gives me this error [QUOTE]Property or indexer 'string.this[int]' cannot be … |
|
I have to make a folder listing, which I've created:[code=php]$dirPath = '.'; if ($handle = opendir($dirPath)) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { if (is_dir("$dirPath/$file")) { echo "<div style='background-color:#0ccccc;'><a href='$file'>$file(directory)</a></div>"; } else { echo "<div style='background-color:#0ccccc;'><a href='$file'>$file</a></div>" . filesize($file); echo … |
|
I would have "thought" it would be a simple thing to get the (unformatted) text in each cell of a dynamic table but I have failed to solve this problem. So...I have a table that the user can dynamically load with data. They click an add button to insert a … |
|
Hi, I have used an open source code from codeproject to read email from incoming mail server(POP Server). The code can be found at following location: [url]http://www.codeproject.com/KB/IP/Pop3MimeClient.aspx[/url] So far it works fine i can read emails. My objective of using this code was to retrieve emails from POP server and … |
|
i everyone, I'm trying to send data to arduino(serial) from assembler (8086 -windows). I can read data but write doesn't work. I always receive 80H in AX, this is the code: [code]send proc MOV AH,00 ; init port MOV AL,11101011b ; 9600, N,1 bit stop, 8 bit data MOV DX,00 … |
|
Ok, so I'm trying to write an emulator for a simple processor architecture and I've ran into a strange problem. I decided to read the input code once through to see how many lines there were, then set up an array of that length, and then go through the file … |
|
[CODE] import java.util.*; import java.util.Scanner; public class InputconsoleArray2 { public static void main(String args[]) throws java.io.IOException { int[] a=new int[100]; // create an array of type interger size // Objects of type Scanner are useful for breaking down formatted input into tokens and // translating individual tokens according to their … |
|
Hey DaniWeb community; I am trying to create a web page that pulls its settings from a file called settings.xml, and apply them to the web page. The title is the tag I want to change now, but my code is not working. Here is the code: [CODE=PHP] <?php //Open … |
|
Aight. I have a query regarding File I/O : [CODE]// Keep reading the file in a loop for some 100 seconds.. for (int x=0; x<100; x++) { // Code for reading file - say readFile() Thread.currentThread().sleep(1000); /* sleep for one second */ }[/CODE] Now, I need to read a file … |
|
I am trying to read and write a text file into an array and then store it back into the text file. The main problem i am having is the storing the file character by character into the 3D array. Here is my code: [code] #include <iostream> #include <fstream> using … |
|
hi, i have some code which is taking a value of how many moves a function is making to an array of numbers, and displaying it but basically, when i call the function initially, it will give the correct number of moves, when i call it again its adding the … |
|
Well I'm trying to make a tool for a game for learning purposes and i can't figure it out, I have Checkbox1 and a button The button saves the ini with the checkbox1.CheckState correctly and when i open it the Checkbox1.CheckState is checked so it works, but when i Delete … |
|
My problem is I want to be able to read through this xml document and populate a winform before validating it and then storing it into a table. This is a snippet of the xml document, it's way too big to put it all here. [code=xml] - <Applicant> + <common:PersonName> … |
|
Hi, i hava a dropdownlist in asp.net mvc page. On selecting particular select item from dropdownlist i have made an ajax post request to the controller method that returns me the result. Everything is working fine. i also get the required result. But the problem is how shall i extract … |
|
Well hello! I'm having problem with reading data from notepad.. So here is what I'm trying to do. etc.. I have notepad file "Doc" and in it there are few things: Level= 5 Cash= 100 And what I want from my program to do is to read Level and Cash … |
|
Hello, I am trying to do a program that is reading for example a.txt file that have 5 lines and i want him to show me for example line #3 only, i know i need to use fgets but i rly dont know how to start it a.txt [CODE]1;27.01.1957;8;12;31;39;43;45; 2;03.02.1957;5;10;11;22;25;27; … |
|
Im currently working on a project where i need to read a text file containing a list of users and let it be stored in a database. Here is my text file: headers(ID number, LastName, FirstName, MiddleInitial,Course and Year): 2070939 Carter, Billy Joe K. BSIT 4 2070123 Daniel, Michael Ericson … |
|
Hi all, I'm new to Java and going through a steep learning curve. Every now and then I'm getting dead stuck, so your help is immensely appreciated. So, here's the problem: (with Java NetBeans IDE) I have a JFrame form, and in it 4 JComboBox'es. Also a JButton titled "Enter". … |
The End.