7,373 Topics

Member Avatar for
Member Avatar for fabricetoussain

ok so i have this program here i had to finish, and it was for input and output files, i wrote everything, and even wrote the data.in and data.out files but when i run it i get nothing in return. do the files have to be in the ".in" format …

Member Avatar for triumphost
0
295
Member Avatar for Paddy

Windows 7 Enterprise x64 Windows Media Player 12.0.7600.16667 I use Windows Media Player to stream videos to my PS3, and in order to do so I have to add videos to the Videos library in Windows Media Player. This works fine most of the time, but sometimes the video I …

Member Avatar for zelkea
0
296
Member Avatar for moose333

Hello I am currently attempting to write the contents of a .hrm file into a datagridview and place each piece of data into its required column. This is the code I have at the moment which is currently just extracting some data from the .hrm file and placing it in …

0
116
Member Avatar for moose333

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 …

Member Avatar for moose333
0
488
Member Avatar for vishal.patil

This is the code that I have written in C# which shows the contains in the sample.log file. [CODE] class FileRead { public void ReadData() { FileStream fs = new FileStream("sample.log", FileMode.Open, FileAccess.Read); StreamReader sr = new StreamReader(fs); sr.BaseStream.Seek(0, SeekOrigin.Begin); string str = sr.ReadLine(); while (str != null) { Console.WriteLine("{0}", …

Member Avatar for mcriscolo
0
417
Member Avatar for dark3lf

Hello, I have a script written the unix shell language (NOT in bash or any other shell, in sh) that prints the mount point of a given usb (i.e, it takes the path of a usb (such as /dev/sdb1) as an argument). Here it is: [CODE] #!/bin/sh # usage: get_mount …

Member Avatar for thekashyap
0
202
Member Avatar for tomala90

Hi all. I am trying to read items from a text file whose name is input by the user and also output the receipt to a text file whose name is input by user. I got stock for about 3 hours. Could you guys help? Thank You. [CODE] #include <iostream> …

Member Avatar for jonsca
0
291
Member Avatar for Christine

I can upload one file and would like to allow for 4 - 6 file uploads. I did not write the upload code and all I need is to add more uploads and I am not sure how to alter the code. # maximum file size allowed (kilo bytes) $max …

0
85
Member Avatar for sdr001

Hello, I am trying to save elements into a file and it is not working. If the file is there, the new elements need to override everything in the file, pretty much clear it out and write to the file. If the file is not there, it just writes the …

Member Avatar for sdr001
0
219
Member Avatar for whizkidash

Team, I have a shell script which will b run in cron job. On an adhoc basis. The script needs to be run such that the moment it goes to the particular directory. It should adapt to its ownership. But the script which i had shared below is run by …

Member Avatar for thekashyap
0
180
Member Avatar for yoshitsugu

Can anyone fix my problem? I'm sure my getDate function algorithm was right, but it still wrong.. here is the code: [code=c] #include<stdio.h> #include<string.h> #include<stdlib.h> typedef struct{int day,month,year;}Date; typedef struct{ char name[31],gender; Date dob; }Student; void getString(FILE* x,char* y); Date getDate(FILE* x); char readChar(FILE *x); int main(){ Student pupil[100]; int …

Member Avatar for L7Sqr
0
188
Member Avatar for arunmag

I want to create a batch file that opens an executable(.exe) file . Actually when we open that .exe file it asks us select or browse a file then we need to select the file. After selecting the file we need to remove the file in the second textbox by …

Member Avatar for arunmag
0
182
Member Avatar for techie929

Hi, I am getting the following errors: HelloWorldApp.java:54: <identifier> expected public static Vector<int[]> breakTheMovementVector(int i,int j){ ^ HelloWorldApp.java:102: ';' expected } ^ 2 errors [CODE] import java.io.*; import java.util.*; class HelloWorldApp { public static void main(String[] args) { try{ // Open the file that is the first // command line …

Member Avatar for mKorbel
0
123
Member Avatar for CHOCHOCHO

[CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace FriendBirthdayReminder { class Program { static void Main(string[] args) { FileStream file = new FileStream("FriendsData.txt", FileMode.Open, FileAccess.Read); StreamReader reader = new StreamReader(file); const char DEMLIM = ','; const int END = 999; int count = 0,num,size; string name,recordIn; string[] …

Member Avatar for abelLazm
0
117
Member Avatar for hotice47

hi i need help here i have a form which will be filled by user his name email phone number etc...and then that information will be submitted into my ZOHO CRM account and using that information i like to fill a Proposal and Generate a PDF of that Proposal and …

Member Avatar for hotice47
0
153
Member Avatar for rizla777

Hi I have a problem that I'm not sure how to resolve. My issue is that I have to setup a page that allows coworkers at my office to be able to upload meeting documents and such. They should be able to upload them themselves and the user viewing the …

Member Avatar for 84hd0ns
0
191
Member Avatar for jimu

i am a beginner .can anyone just give me a code to make a txt file using c code,that will create txt file with name same as the value of int variable.. consider like if int x=10,then file name created will be 10.text if x is assigned 45 then it …

Member Avatar for jimu
0
206
Member Avatar for CHOCHOCHO

Create a file that contains your favorite movie quote. Use a text editor such as Notepad and save the file as Quote.txt. Copy the file contents and paste them into a word-processing program such as Word. Save the file as Quote.doc. Write an application that displays the sizes of the …

Member Avatar for Momerath
0
347
Member Avatar for Neversleepin

Hi, i have a text file containing data like temperatures, voltage... this file contains more than 2000 rows What i want is to import this text file with Excel using Java. because i don't to open excel then click on import then choose the file...etc If someone know a tutorial …

Member Avatar for mKorbel
0
78
Member Avatar for nazerb

Hi Ok i am makeing a program and want it to check if there is an update availible by checking if a txt file with the version has a difrent number. I have been looking around and found absolutly no help for this problem. The text file would be at …

Member Avatar for pseudorandom21
0
127
Member Avatar for raidernation

#include <fstream> #include <cctype> #include <iostream> #include <string> const int num=1024; using namespace std; int main(){ ifstream file; string s; int i=0; file.open("words1.txt"); while(getline(file,s)){ for(int i=0; i< s.length(); i++){ cout << s[i];//prints out the text file just fine. "a dog." cout << s[0]; /*prints out random stuff. <---my problem. All …

Member Avatar for raidernation
0
1K
Member Avatar for freakunleash

Hi All, Need help in uploading multiple files and renaming them. I want the file to rename to corrensponding text file while uploading. Below is the messy code on which I'm working. Regards BW HTML code [ICODE] <html> <head> <title>Multi</title> </head> <body bgcolor="#c2c2c2"> <form method=post action=upload.php enctype='multipart/form-data'><table border='1' width='400' cellspacing='0' …

Member Avatar for jkon
0
160
Member Avatar for freakunleash

Hi Guys, I need help for in storing data from PHP from array in mysql. I'm very new to PHP/Mysql and have started learing it just few weeks back. I'm trying to build a website for myself. I'm having tough time trying to insert the data from Form in mysql. …

0
60
Member Avatar for raidernation

#include <iostream> #include <fstream> #include <string> #include <cctype> using namespace std; const int num=1000; int main(int argc, char *argv[]){ if (argc == 2){ ifstream file; file.open(argv[1]); } else cout << "You typed only one file" << endl; ifstream file; file.open(argv[1]); string space; char word; int i=0; int w=0; int s=0; …

Member Avatar for raidernation
0
187
Member Avatar for vigneshd90

Hi, I would like to know if its possible to edit a properties file after the project is deployed. I tried editing the values in the properties file using a classloader. [CODE] ClassLoader classLoader = this.getClass().getClassLoader(); prop.load(classLoader.getResourceAsStream("test.properties"));[/CODE] It reads the values properly but I couldn't write it back to the …

Member Avatar for vigneshd90
0
774
Member Avatar for emorjon2

Hi there! got some problems. I've developing a multiplayer game there's a class called userServer, that use a file to handle all incoming information. but I can't write to the file for some reasons. here's the code: [CODE] /** * @(#)userServer.java * * * @author * @version 1.00 2011/2/16 */ …

Member Avatar for jon.kiparsky
0
318
Member Avatar for r0n

hello everyone, got issue regarding reading duplicate records in a text file... i need to read the file and look for any duplicates data/keys in the text file and write them to another file (all the duplicates records)... how can i do that, in looping...:-/ any help...:) thanks!

Member Avatar for r0n
0
2K
Member Avatar for abhi10kumar

I want to add a file which will come database that is file path. I am using the following code to send, Mail is being sent with out attachment. [code] $name = "Abhi"; $email = "abhi10kumar@gmail.com"; $to = "$name <$email>"; $from = "Rahul Kumar"; $subject = "Here is your attachment"; …

0
132
Member Avatar for pkty31

/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.skynet.simpleHttpServer; /** * * @author Gryffy */ /* "Copyright (C) 2001,2005 by SkyNet Corporation \n"+ "\n"+ "Redistribution and use in source and binary forms, with or without\n"+ "modification, are permitted …

Member Avatar for masijade
0
471
Member Avatar for plang007

I really need help in writing this program for homework. 1. Round the average for each student to the nearest integer. 2. Add code to print out an appropriate message for each student. (given in prologue comments) 3. Add code to calculate the highest student average, and the lowest student …

Member Avatar for ravenous
0
263
Member Avatar for Mr68360

Most examples of the select() function use a 0 to 'max file descriptor value' approach: [CODE] fd_set master_fd_set; FD_ZERO(&master_fd_set); fd_set temp_fd_set; FD_ZERO(&temp_fd_set); int max_fd = the_max_file_descriptor_value_of_descriptors_interested_in; ... temp_fd_set = master_fd_set; ::select(max_fd, &temp_fd_set, NULL, NULL, NULL); for (int i = 0; i <= max_fd; ++i) { if (FD_ISSET(i, &temp_fd_set)) { // …

Member Avatar for nezachem
0
246
Member Avatar for slrobinson1983

hello all. i've bee learning php for the last couple of weeks while designing a site but i am now frequently running into situations where i need to use javascript. i have a page where i want a user to browse for a pic with a file field and i …

Member Avatar for slrobinson1983
0
295
Member Avatar for RobBobSmith

I'm having trouble reading in values from a file. I know how to get all of the values in the file, but I only need some of them. This is my code (a snippet) so far. [CODE] ifstream myStream( file ); // file is the file name . while (true) …

Member Avatar for jonsca
0
201
Member Avatar for Tellalca

Hey; I am trying to keep a data file but I'm getting confused with the sizeof(char) = 2 bytes. I understand that it is a unicode char but why does class BinaryReader's function ReadChars(int count) function just increases the streams position by count bytes ? If that is not clear …

Member Avatar for Momerath
0
191
Member Avatar for nrkumarvj

Hi I am preapring a website form where the resume needed to be uploaded and it should send an email to me along with upload as attachment. Please let me know the error in this below forms: == HTML Form: [CODE]<form method="post" name="mailform" action="emailnew.php"> <table width="200" border="0" cellspacing="0"> <tr> <td …

Member Avatar for diafol
0
302
Member Avatar for Python_nooby

Hi, I was hoping to create an application where the user can open a file from their hard drive (using the askopenfile dialogue from tkFileDialog) and it would display information such as file name / size. I managed to get everything working correctly except for displaying the information. I tried …

Member Avatar for slate
0
887
Member Avatar for davidmhollis

I am running a batch file using msxsl to take an input xml file like below <ns1:invoicedata> <data1>1</data1> <data2>2</data2> </ns1:invoicedata> I need to copy this original output and replace the values with the input file values <ns2:invoiceoutput> <data3>3</data3> <data4>4</data4> <data5>5</data5> </ns2:invoiceoutput> so that it ends up with the following data …

Member Avatar for davidmhollis
0
246
Member Avatar for muhamin

bellow is my entire file, the problem is when i insert multiple links, it only fatch 1 link from the textarea and then giving me the following error on the rest, FYI there is no problem with the reading part in the text area i can read line by line …

Member Avatar for paulrajj
0
223
Member Avatar for Neversleepin

Hi, i'm still beginner in java. Here is my simple question: if we have two java programs like: -test1.java which open a file for example. test2.java which move one file to another directory. Suppose these two programs are working well separately. if one day, we want to write just one …

Member Avatar for Neversleepin
0
162
Member Avatar for fsefsef23

Hey all! I have polynomial programming project that I'm doing where I need to read a set of numbers from a file where each set of numbers are written in the format <coefficient> <exponent> on each line in the file. First and foremost I've set up a structure called Term …

Member Avatar for jonsca
0
93
Member Avatar for m1234ike

I want to create a program that I can create a Text file folder on my desktop and move all the text files into the folder. Here is what I have so far: Below is where I create the Text folder: [code]Dim myPath As String = IO.Path.Combine(My.Computer.FileSystem.SpecialDirectories.Desktop, "Text") IO.Directory.CreateDirectory(myPath)[/code] Here …

Member Avatar for codeorder
0
630
Member Avatar for Walahh

Hello everyone, I would really appreciate if anyone could please help me out here. I am trying to read the user's input in one page and then trying to display it in another page (want to let my users upload a file from their machine and save them in my …

Member Avatar for Javvy
0
152
Member Avatar for StevoLord

Found this sniplet of code on various websites to use this way of playing a wav file however im getting this error message. javax.sound.sampled.UnsupportedAudioFileException: could not get audio input stream from input file Update 1 - I know the wav file has to be 8khz, is there a way to …

Member Avatar for StevoLord
0
4K
Member Avatar for majyun

Hi there, I am new to the forum. I know this topic is not new. I have did a search on it and did not quite get what I wanted. Currently, I am trying to write a c++ programme which help me to read in about 10000 rows of numerical …

Member Avatar for jonsca
0
228
Member Avatar for Netcode

i have a file upload control. Please how do i specify a file size and file tyoe to be uploaded. Its very urgent

Member Avatar for Netcode
0
103
Member Avatar for lwb525

Here is the problem from my Programming class: Write a program that asks the user for two file names. The first file will be opened for input and the second file will be opened for output. (it will be assumed that the first file contains sentences that end with a …

Member Avatar for WaltP
0
2K
Member Avatar for Amoryethel

Hi, I'm writing a program that reverses the words of a text file using the LinkedList structure. Unfortunately, I have received the following error: [CODE]java.util.Scanner[delimiters=\p{javaWhitespace}+][position=30][match valid=false][need input=false][source closed=true][skipped=false][group separator=\,][decimal separator=\.][positive prefix=][negative prefix=\Q-\E][positive suffix=][negative suffix=][NaN string=\Q?\E][infinity string=\Q?\E] [/CODE] And because of that I'm having difficulty proceeding to the next step. If …

Member Avatar for ztini
0
211
Member Avatar for AntiNL

Hi, I've been busy writing a script to upload photo's to my webserver, and after a lot of searching I finally managed to get the permissions correct, but now I'm having another problem. There are quite a lot of posts about it, but they all come down to having the …

Member Avatar for smantscheff
0
259
Member Avatar for elson.james

Hi there, I've search all over the internet on how to list a directory in PHP but failed to do so. I've seen other php scripts but it didn't have the features I want. Do you have something like this: 1. It allows you to display all the directories and …

Member Avatar for elson.james
0
280
Member Avatar for rockstat

Hello Everyone I am new to this forum and hope I can get some help and vice-versa. I am doing this little project for my self in C Sharp and it involves WMP. I have provided my code at the bottom and appreciate any help I can get. I am …

0
130

The End.