7,373 Topics
![]() | |
I am using BIDS 2008 to export to flat file(CSV) it will be automatically exported at 11.00 am in the morning. What i want to know, can we make it so the file that are being exported has a unique name each time it was being generated? so each day, … | |
i am building a chat and i have this code: [CODE] using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net; using System.Net.Sockets; using System.IO; using System.Threading; using System.Runtime.Serialization; using System.Runtime.Serialization.Formatters.Binary; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { TcpListener server = new TcpListener(IPAddress.Any, 5000); server.Start(); Console.WriteLine("Server … | |
Hi I want add .mdf file in visual studio 2010 but in add conncetion show this error : click this link to show error [URL="http://imagenic.net/viewer.php?file=el5ce80y64r9d9bdspq1.jpg"]http://imagenic.net/viewer.php?file=el5ce80y64r9d9bdspq1.jpg[/URL] use SQL server 2008 R2 and VS2010 and I dont know what Please help me or give me a learning file or website Thanks | |
how to modify the contents of a file Example:: If there is a file with hello #how are you Then how to delete the # and maintain the same file | |
Hi all, ive got a problem relating to the log4j.jar file (I suppose it would be the same problem regardless of what the .jar file is). I created a library based off the log4j.jar file, and the logging works and everything runs smoothly on my laptop. However, when I use … | |
I have multiple projects in the same database that use the same dll code. Currently I have to define in the dll what the project names are and what the unc path is that each particular project needs to reference for it's excel file. The excel file contains notes that … | |
I have written the code to read the csv file(which include 4 rows) and the application is running sucessfully, while writting to the file it writes 2nd and 4th row to the file I am not getting why its happening. Can anyone help me for the same. following is the … | |
hi. I have a list of names of flash files. On clicking anyone of them, flash file(.swf) whose path is know should play on the same webpage, on the right side of the list I know the code to play swf file. But here the file name has to be … | |
Hello! I'm new here... and I'm having trouble trying to download and upload files from an ftp server.... Btw this is not for homework! I'm trying to help a professor with this but I'm stuck!... Help?? :/ | |
Hello. The problem with the following code is that when I read from a file after restarting the program and then try to display the contents, it goes into an endless loop. I hope that someone can point out the logical error hiding there. [CODE]#include <iostream> #include <windows.h> #include <fstream> … | |
I am using split to split a string into a int, int, string. When I try int, string, string my program works fine. When I try int, int , string I get a run time error of an input string was not in a correct format. I am leaving a … | |
Hey everyone, I need to write a program that reads names and GPA’s from a text file. The file looks like: James 3.9 Margaret 3.5 Charles 1.2 Jennifer 4.0 The program sorts the students ascending by gpa, and prints the sorted list including names. To keep the names with the … | |
i tried my writing my first script today :) it is the solving the quadratic equation script and i found it in an older C++ book i'm working through i made some edits to the script since i'm using Dev C++ as my compiler (had this problem but fixed it … | |
Greetings, I am about 4 hours into JAVA and am making a big mess of it. Last night (at home) I installed the latest JAVA and NetBeans and got a "Hello World" Today I installed the 2 at work and am getting errors involving: "NoClassDefFoundError" (even with what worked last … | |
Hello there, I am trying to create an application which will open once the associated file type is clicked. I have associated my application with the extension .agl, via Visual Studio. When I publish the application and install it, the file is associated properly with my application and when I … | |
i have written the code and tried to compile, but it always say that the file can't be read, yet i have put the same name file in one directory with the c++ file. need your help so can read the file on my mac.. #include <iostream> #include <fstream> #include … | |
Hi! I am trying to find the length of a video file using the following code: [CODE]Microsoft.DirectX.AudioVideoPlayback.Video video = new Microsoft.DirectX.AudioVideoPlayback.Video(path); StringBuilder sb = new StringBuilder(); sb.Append(video.Caption); sb.Append("\r\n"); sb.Append(video.Size.Width.ToString()); sb.Append( "\r\n"); sb.Append(video.Size.Height.ToString()); sb.Append("\r\n"); sb.Append(video.Duration.ToString()); textBox1.Text = sb.ToString(); [/CODE] But in order to use this code I need to add reference … | |
I m planning to create a web based system in which I need to allow users to upload videos and photos into my database and to display that video or photo which they request. I m more comfortable working in java, so i have placed my query here. I would … | |
hi, im about to finish a winform app for a client and I was wondering about the most common ways to handle connection strings. I know you can change the path from within appConfig to whatever the path may be on the destination server but are there any established approaches … | |
<?php $to="sreedevs.arun@gmail.com"; $subject="bad boy"; $message="message"; $attachment="image.jpg"; $attachment_MIME_type="image/jpeg"; $handle=fopen ($attachment,"rb"); $data=fread ($handle, filesize($attachment)); fclose ($handle); $boundary="---Multipart_Boundary----"; $headers="\nMIME-Version: 1.0\n". "Content-Type: multipart/mixed;\n". " boundary=\"".$boundary."\""; $data=chunk_split(base64_encode($data)); $text="--".$boundary."\n"; "Content-Type:text/plain\nContent-Transfer-Encoding: 7bit\n\n". $message."\n\n--".$boundary."\n". "Content-Type:".$attachment_MIME_type.";\n name=\"". $attachment."\"\nContent-Transfer-Encoding:base64\n\n". $data."\n\n--".$boundary."--\n"; $result=@mail($to,$subject,$text,$headers); if($result) { echo "the mail was sent"; } else { echo "the mail was not sent"; } ?> output … | |
I used this code to upload file but it remove The first word of the name of the file When the file name in Arabic [CODE]$notefile = basename( $_FILES['file']['name']) ; $target_path = "files/"; $target_path = $target_path . basename( $_FILES['file']['name']); if(move_uploaded_file($_FILES['file']['tmp_name'], $target_path)) { echo ""; } else{ echo ""; } [/CODE] … | |
Hi All, I am a new member of this forum. i have some query related to USB device. Actually , i want to copy a file/ folder by sector or file level from One source volume to destination volume. Main requirement is this that: a) Source Volume to Destination Volume … | |
Hi All, I have one strange issue, JSP cannot Identify the JS, CSS file path when URL pattern is /*. Let me explain in detail. Irrespective of relative path my application should have to call Home.jsp. So for that I have specified URL pattern as /*. This logic is working … | |
![]() | I have an electronic subscription to a newspaper and I generally download and print the puzzles for doing them later. Due to health issues, I'm behind about 6 months, but I'd like to catch up. I'd like a script to automate the download and save it to my PC. I'm … ![]() |
Hello, before I ask anything THIS IS A HOMEWORK QUESTION! I know alot of people dont like to help with homework, however I have really tried on this and I still dont think I have it. Im not asking for the answer as I do need to learn it myself … | |
Hey there Geeks! Sorry if I'm posting this in the wrong place, it is about a .cpp file but it isn't about C++, it's about the text file. I was doing my graphics programming assignment with directx and it was somewhere around 80% done and suddenly I made a wrong … ![]() | |
Sorry if I'm posting this in the wrong place, it is about a .cpp file but it isn't about C++, it's about the text file. I was doing my graphics programming assignment with directx and it was somewhere around 80% done and suddenly I made a wrong turn with a … | |
hi everyone i want to make mymap show to mobile screen. i using to google map my map page is : [url]http://www.hendekgenctiyatro.com/mobile_kmeans.php[/url] my code is not show mymap to mobile screen [CODE] private String url2="http://www.hendekgenctiyatro.com/mobile_kmeans.php?"; public void run() { try { Image image = get_map2(url2); myItem = new ImageItem(null, image, … | |
I was happily surfing away when I got a fake windows alert saying I had an infection, disconnected the net and tried closing the alert, which opened a fake explorer also yelling about infection. Closed that and ran HT which had an on entry of: F2 Reg: System.ini: UserInit=userinit.exe That's … | |
Hello all: I have a small script that will present options to a user, and from those options will export data into an Excel spreadsheet. This seems to work correctly, but the problem is that the user interface page does not get updated after the download. Here is an example: … | |
Hi all, I installed jdk 6_23 and set the path of jdk in system path properly. And then I could run any jar file by command line, but when i double-clicked on the jar file, a message of Java Virtual Machine Launcher occured : " could not find the main … | |
The below code works well in my localhost, but gives an error whenever I upload it to my hosting server! :?: Somebody please suggest me what to do ??? [B]Here is the code:[/B] [CODE]<?php error_reporting(E_ALL); ini_set('display_errors',1); require('Connections/cn.php'); if(isset($_POST['modify_m']) && $_POST['modify_m']=="Update") { //Update image $file_name= $_FILES["file_m"]["name"]; $file_type= $_FILES["file_m"]["type"]; $file_size= $_FILES["file_m"]["size"]; $file_temp= … | |
Hi, I am trying to write a simple c++ script to learn more about file manipulation. First script is adding some info a file as a structure and second one is reading from the file. However when i try to read from my file it always shows the found values … | |
Hello every one, is it possible to get files from a file list display with System.out.println. I mean for example if you code something like: System.out.println("file.getName"); Then you get a file list. After how could we use this file list to for example copy or move or anything else with … | |
Hello, How can i create / edit the details that shown in the property -> version tab of an executable file . ie which can be taken from window's explorer mouse right click context of an exe file. The exe file was created using MINGW and qmake. thanks in advance … | |
How would i upload image files to a database and then display them using [CODE] <?php $query = "SELECT * FROM members WHERE email='$username' AND id='$id'"; $result = mysql_query($query); $row = mysql_fetch_array($result); ?> <img src='<?php echo $row['pic']; ?>'> [/CODE] and also, what kind of field should i use in the … | |
First of all, Im not too good at c++. so please take it easy on me. I try to change the password but i only want to change a certain password in the text file.But when the text file got re-write like only one new password exits. the whole file … ![]() | |
hello, Actually, i want to play sound file from [COLOR="green"]resource[/COLOR]. I am using [COLOR="green"]WindowMediaPlayer[/COLOR] Control for window application. But there is only option is "[COLOR="Red"]URL[/COLOR]" (Property of control) to play sound file. I don't want to use [COLOR="Red"]URL[/COLOR] property. Because my sound file is present in the [COLOR="Green"]Resource[/COLOR]. Any body … | |
I am relatively new to Python and just have a couple quick questions about using file paths in Python code. 1) As I was recently playing around with the command line, I could not get a file path to work correctly unless I used forward slashes in the path...for example: … | |
In my project I need to open file dialog so that user can select local image file on his machine. I need to access that local file and rename it and FTP that file on server. What is the best way to that? I have already used FileUpload control but … | |
I'm having problems getting a file to associate its self with it's program. I've tried all the methods that you would typically follow to fix this and it doesn't work. I found a method with edits the registry, that didn't work either. I hope someone can help me fix this … | |
Hi, In what way the Visual Studio generates the 'full resources names' from control resource tag in aspx file? For expample in .aspx file I have a textBox control with resource tag: [CODE]meta:resourcekey="ASPxComboBoxResource5[/CODE]. In resx file I could find this: [CODE]ASPxComboBoxResource5.DisplayFormatString, ASPxComboBoxResource5.DropDownButton.Text, ASPxComboBoxResource5.DropDownButton.ToolTip, ASPxComboBoxResource5.ItemImage.AlternateText, ASPxComboBoxResource5.ItemImage.DescriptionUrl, ASPxComboBoxResource5.LoadingPanelImage.AlternateText[/CODE] and so one... I … | |
Hi I have a db that has the following Data for example: PolicyNumber, StoreId, ConsultantName,ClientName, ClientSurname I would like to have a report that will give me a list of policies done for that day seperated by store printed to PDF. So Basically Store - 12CEL 24Hr001 Bob Joe Soap … | |
Hello, for a while now I have been studying file uploads. I have 2 scripts, 1 creates a folder for a user and store the image in it. The other resizes the image and stores it inside another folder. What I would like to do is combine both scripts in … | |
[B][U]Short version:[/U][/B] Windows 7 appears to be losing changes made to text files if the PC loses power, even if the changes have been saved. Why would it be doing this and how can I make the changes stick? I need the changes to be persistent even if there is … | |
Hi, The program below takes input from user the marks of 10 students in 6 subjects and gives output as: [output] Maths Phy Chem Bio C.Sc Eng Tot Stud_Avg studentname1 10 20 30 40 50 60 210 35 studentname2 20 30 40 50 60 70 270 45 -- -- studentname10 … | |
I'm building a program allows me to answer questions with radio buttons, and then save a list of the questions and the selected answers to a .txt file which I can convert to a .pdf from Word or some other program. Im using a PrintWriter to write the file, and … | |
Hello, I have a Text file containing the english dictionary, it is 237,000 words long and in each line of the text file there is a word. What I want to do is obtain a word from the textfile randomly. I don't think reading the text file to end and … | |
Hi all, Im trying to create and write to a file to create a "list" type document that I can convert to .pdf and print out later on. Below is an example of what I'm doing. [I]out[/I] is my file and list in a string array that holds the answers … | |
Hello everyone, before i ask this question i would like to say first that im a beginner in asp c#. I would like toask for a tutorial on making a download button for binary datas. My file upload is already working fine. I just need a download button so i … |
The End.