224 Topics
|
|
This is a [inlinecode]strtol[/inlinecode] version of [url=http://www.daniweb.com/code/snippet353.html] Read an Integer from the User, Part 2[/url]. |
|
Hey everyone, I'm new to posting in these forums so sorry if I didn't post my code correctly? I think i did it...hopefully. Anyways, I've been working on this all day but I can't figure it out. (i think i will be having problems with the rest of my assignments … |
|
[CODE]#include <stdio.h> #include <fcntl.h> #include <iostream> using namespace std; int main() { int fd, i, oflag; char buf[100]; oflag = (O_RDONLY); fd = open("from4to5", oflag, 0x1c0); if (fd < 0 ) {printf("Error opening\n"); exit(1);} while ( (i = read(fd, buf, 16)) != 0 ) { cout << "child: # bytes … |
|
|
Hi, Could someone please tell me how to read from a CSV file? Also, how to update (write) to a CSV file? Thanks, -Ashton. |
I am trying to read data from remote SQL base. I have written the function that works great if you need to get 1 Value , but when I want to read 2 or more value at from one query it doesn't work how can I fix it? [CODE]Imports System.Data.SqlClient … |
|
Hi, i need to read the database connection properties,driver class, username and password in java code...How can i read that using some properties.... |
|
[CODE]#include <iostream> #include <sstream> #include <fstream> #include <string> #include "Python.h" using namespace std; #define tP PyRun_SimpleString(pyCom.c_str()) double func(double x); int main() { //file to write numbers to ofstream file; file.open("numCache.txt"); //string for int to string conversion string temp; stringstream output; //string that is read from console string numCache; //returned number … |
|
OK, so I have this project to do and cant figure it out. I am not positive on calling functions correctly and I am kind of lost when it comes to parameter passing. So my program needs to read a text file 1 integer at a time, find out if … |
|
Can I change a file stream object's read position in C++? I mean I have a file with a series of integers separated by a newline character. Can I read the first five integers into some variables and then move the read position back to read the fifth integer one … |
|
Hi, I am trying to read a webpage, namely a PHP page that returns "true" or "false" depending what $_GET (Or is it $_POST?) information is sent. The URL it attempts to read will look like this: [ICODE]www.thesite.com/key.php?key=the_key[/ICODE] and the page will return a true or false. I currently have … |
|
Anyone got anything about reading a sequential number from text file per line and parsing it to an array in C? SequentialNumber.txt 12 3 45 6 7 8 3 5 6 7 7 0 -1 4 5 array1[] = {12, 3, 45, 6, 7, 8}; array2[] = {3, 5, 6, … |
|
Hey guys. I want to read from a file created by me from a specific position. But i don't know how to move the file cursor. [code=ptasm] TITLE ep1 .MODEL SMALL .STACK 10h .DATA text DB '1234567Start:7890.end',13,10 text_length equ $-text dir db 'D:\myfile.dat',00h buff db 17 dup('$') f_handle dw 1 … |
|
hi there. say i have a text file. in this text file is all the information i need for my output. the problem is, probably because i'm still very new at this, i don't know how to read this particular text file and output it onto the screen. suppose i … |
|
Just a quick look at the way C# writes and reads text files. |
The End.