224 Topics

Member Avatar for
Member Avatar for Dave Sinkula

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].

Member Avatar for anthonytan
0
550
Member Avatar for s8498

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 …

Member Avatar for UberJoker
0
2K
Member Avatar for halluc1nati0n

[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 …

Member Avatar for halluc1nati0n
1
296
Member Avatar for feoperro

Hi, Could someone please tell me how to read from a CSV file? Also, how to update (write) to a CSV file? Thanks, -Ashton.

Member Avatar for feoperro
0
197
Member Avatar for ShemoPT

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 …

Member Avatar for G_Waddell
0
3K
Member Avatar for moyphus

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....

Member Avatar for masijade
0
100
Member Avatar for ebrutekim

[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 …

0
104
Member Avatar for acdougla17

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 …

Member Avatar for restrictment
0
150
Member Avatar for dmm

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 …

Member Avatar for dmm
0
588
Member Avatar for dylank

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 …

Member Avatar for dylank
0
1K
Member Avatar for van_tomiko

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, …

Member Avatar for yellowSnow
0
126
Member Avatar for Alex_

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 …

Member Avatar for NotNull
-1
997
Member Avatar for Alexia Noir

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 …

Member Avatar for Alexia Noir
0
131
Member Avatar for vegaseat

The End.