7,373 Topics
![]() | |
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 … | |
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 … | |
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 … | |
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 … | |
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}", … | |
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 … | |
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> … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
[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[] … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
#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 … | |
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' … | |
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. … | |
#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; … | |
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 … | |
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 */ … | |
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! | |
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"; … | |
/* * 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 … | |
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 … | |
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)) { // … | |
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 … | |
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) … | |
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 … | |
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 … ![]() | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
i have a file upload control. Please how do i specify a file size and file tyoe to be uploaded. Its very urgent | |
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 … | |
![]() | 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 … ![]() |
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 … | |
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 … | |
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 … |
The End.