6,015 Topics
![]() | |
my code is printing directly to the printer but i want to see the preview [CODE] Dim vlineCount As Integer Dim vpageCount As Integer Dim SN As Integer Dim sqlp As String vlineCount = 0 vpageCount = 1 SN = 0 '//NOTE : Report file name should never contain blank … | |
we are to distribute portable software (which is free). along with that we are giving away a unique file which we don't want people to copy, but on the other hand, they can paste anything they want in USB. easy solution is to bind that file to exe file. so, … | |
Just came across a code of compressing file thought to share :). Code for text file only can be changed for other filetypes....It reduces nearly 97% of the file size ... [CODE]OpenFileDialog opd = new OpenFileDialog(); FolderBrowserDialog fbd = new FolderBrowserDialog(); textBox1.Text="Path + File To compress";//open file by open file … | |
Hi, I'm having a problem with taking the user input from a richtextbox in Unicode and writing it to a Unicode text file. I'm able to read a different Unicode file and write it to the new file, but when it comes to writing the contents of the richtextbox to … | |
hai everybody am unable to find full path of file. am using following code to import the file. in internet explore am getting full path, but in firefox(version-8) i'm getting only the file name instead of the entire file path.please help me to find full path of file.. <td> <input … | |
Hello, I am fairly new to shell scripting. I see a lot of examples out there of how to find if a file has been modified within a certain period of time. What I'm looking for help with is a script that will run and I'm thinking check for the … | |
hello, all I am trying to insert rows from Excel sheet into SQL database by browsing Excel file in java(JSP). I can insert rows using ODBC connetion. But using odbc user should give DSN in program. I need to insert rows by Browsing file to make it user friendly.i.e user … | |
Hello Guys, My job is to process the text files. following are the steps that i have to do. 1: To combine multiple text files into one text file 2: Add filename (but without extension) in the beginning of each text file. 3: and Finally, index the contents of the … | |
Hi, suppose I have a file named [B]first.txt[/B] from which I want to read. Suppose the text file looks like this: [quote] I like you. I feel your soul. [/quote] Now if I use this: [code] open cool, "< first.txt"; print <cool>; [/code] the entire file content is printed, but … | |
hi i am facing overwriting file in window mobile 6 professional. bellow are my code. when the system start loading: [CODE] Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim line As String Dim Lat As StreamReader = New StreamReader("\Program Files\please_must_be_ok\Resources\contact1.txt") line = Lat.ReadToEnd() TextBox1.Text = … | |
i got this code form the internet where it can delete a file.but when i tried to use it n my own java program it does not work anymore.it always returns 'Could not delete file'. ~this code is for my method delete[CODE]public void delete(String file, String lineToRemove) throws IOException{ try … | |
I have successfully converted my .tiff file to a text file. This was a major step. My issue now that i am facing is "capturing" pertinent data. I am attempting to do this by running a JavaScript to create an HTML file from the .txt file. I am having trouble … | |
Hello, I have a strange problem and I need some help... I am working with a project that the compiler create a txt file and save the informations of the user as the user enter... The program create only ONE file and overwrite eatch time... The problem is that the … | |
Hello I'm looking to allow users upload pictures onto my site and have it displayed and linked to their site.. This process is for Ad purposes. Ive looked into php mysql uploading images but ive ran into a lot of threads condemning the practice and suggesting saving the images to … ![]() | |
I am using DotNetBar 10.0.3 AdvTree, (ThreeView), adn i wanted to load content in this AdvTree. I want to add a Node for all folder, and a Child Node for all document. One other think is that i want to hide the extension. Thanks a lot Have a nice day | |
Ok so I have a program that can save user's input into a text file and load it back, but whenever I try to open the file and exit without selecting the file I get an error.(if i select the file and open it i don't get any errors). this … | |
Hello, I have this code for sending and receiving file transfer using C#. But I don't know how to send the file name and save it as file name.. have tried many methods and googling too and still haven't found any clue. Here the client send file: [CODE]Stream Fs = … | |
Hi I am trying to write a script in Bash Shell. I have the file test.txt and has the following data: AIR DR [ 4] Pressure :50 AIR UR [ 3] Pressure :70 WATER DR [ 3] Pressure :90 [ 3] PIS: 402ps WATER UR [ 3] Pressure :110 [ … | |
Hey all! I am writing an application that will read data coming in through a serial port (RS232) and write that data to a file. This file will then be parsed by a php script and the data will uploaded to a server. Is there a function that allows me … | |
Hello ! I just downloaded a Dictionary Words list .txt( containing all dictionary words ), every word is on a line. What i need is only words > 5 letters ( length > 5 ). S o i though about making a Visual basic software that delete words < 5 … | |
Hey guys!!! I know these simulations are too much but.... still another one and I am havin some problems with that/// I have to create a file system simulation that has to understand these commands: cr a - create a new file named a, size ==0; rm a - remove … | |
Hi, I have this program that validates error and then logs it in a text file, but here is the problem, I want to know how show the text file that has been made after the logs have been written, for example, I have validated all the errors, and then … | |
So i have a problem that reads: Each line of the file consists of a student’s name followed by an unpredictable number of test scores. The number of students is also unpredictable. The desired output is as shown where the numbers there represent the average test score rounded to the … | |
Hi friends here is me with another issue i have practicing about file upload, my script working with images perfectly but if i choose mp3 audio file its not moving to the directory which i have specified in my code here is my code [CODE]<?php include ("header.html"); require ("config.php"); error_reporting(E_ALL); … | |
I can't figure out what the error is. [CODE]public void quizTest () { c = new Console(); int total = 34; String[] quizArray = new String [total]; String quizQuestions; int i = 0; int u = 0; try { FileReader readQuestion = new FileReader ("QuizQuestions1.txt"); BufferedReader buffReadQuestion = new BufferedReader … | |
1)w.a.p. in c language that accepts a file as input and prints the no. of words in it. 2)w.a.p. in c language that accepts a file as input and converts all alphabetic characters in it to upper case. 3)w.a.p. in c that accepts a string and prints the list of … | |
is there a way to resize an image after you have uploaded it using php? suppose i want to restrict the width and height of my images to 1000 and 800 respectively what code to i add to the following code snippet? [CODE] $tmp_file = $_FILES['file_upload']['tmp_name']; $target_file = basename( $_FILES['file_upload']['name'] … | |
HI, I've been looking for a long time now, for some simple ways to get the full path of a file in the same directory of my console and the console itself. The main purpose of my small project is to just locate a file and move it into another … | |
Hi, I have this fileupload in my program and I want to set it's extension to .xls only, Is it possible? If yes, how can I set it so it's file filter will only be .xls? Thanks | |
[CODE]#include<stdio.h> #include<conio.h> int main() { FILE *p,*p2; char c; long l; long x; p=fopen("file1.txt","w"); printf("enter the content of file:"); while(c=getchar()!=EOF) { putc(c,p); } fclose(p); p=fopen("file1.txt","r"); // l=fseek(p,1L,2); l=ftell(p); p2=fopen("file2.txt","r"); c=getc(p); while(l!=-1) { if(c==' ') { x=ftell(p); // fseek(p,-1L,1); while(c=getc(p)!=' ') { putc(c,p2); fseek(p,-2L,1); } // fseek(p,x+1,0); } fseek(p,x,0); l=ftell(p); c=getc(p); … | |
i'm trying to upload file using php. i want to restrict the file extensions to .jpg and jpeg. this is the code i have [CODE] $upload_errors = array( UPLOAD_ERR_OK => "No errors.", UPLOAD_ERR_INI_SIZE => "Larger than upload_max_filesize.", UPLOAD_ERR_FORM_SIZE => "Larger than form MAX_FILE_SIZE.", UPLOAD_ERR_PARTIAL => "Partial upload.", UPLOAD_ERR_NO_FILE => "No … | |
Hi, this is my first post here, and I really need some help with my homework. I'm a newbie to Java programming, and I have this assignment: [I]Write an application which reads data from a file about certain items (one row - one item, stored are the integer valued code, … | |
Hi, I have written a program which reads the text from the text file cleans it for some specific letters or phrases and then saves it in another text file. I am having a problem in rewriting the processed or cleaned data (after it has removed some phrases and characters)onto … | |
I wanted to delete data from my original text file "PHONE.txt" while my temp text file is "newPHONE.txt"..but after i do deletion the text only remove at temp file but not in original file..any kind soul can help me? Thanks! [CODE] else if(userInput == "Delete"||userInput == "delete") { string line; … | |
[B]Background:[/B] An application that opens a file, searches the file for the old password, replace the old password, and then saves an closes the file. The file is used by another process. [B]Servers [/B] I have two environments one for dev and prd. [B]The Issue[/B] * On prod the files … | |
I'm looking for a decent directory scripts. I've looked at clones, free and commercial. The commercials look promising but am not sure if they really are worthit. I really need to be able to edit the theme/template and wouldn't mind if there were a plethora of themes available. Are there … | |
im a total newbie and i dont get this: i dont get this flat text file my professor is talking about. I read from wikipedia that: A "flat file" is a plain text or mixed text and binary file which usually contains one record per line[2] or 'physical' record (example … | |
I'm trying to create 10 files with random names and random data. Each line in the file consists of two integers and represents one "record". Naming the files and generating random data didn't turn out very difficult. But for some reason I fail to recognize, while I create 100 records … | |
I want to know how to download a file using c ? For copying a file in c I do this. [code=c] #include<stdio.h> #include<conio.h> int main() { FILE *inf, *ouf; char ch; inf = fopen ( "file1.ext" , "rb" ); ouf = fopen ( "file2.ext" , "wb" ); while( !feof … | |
Hi. I want to read through a file and search for variables saved in it. However if the stream reads the last char I got errors like EOF. For example the following code would not work as intended to : [CODE] bool BaseFileReader::Valid() const { if (!File.is_open()) std::cout << "\n\nERROR: … | |
hi everyone, i encounter problem when trying to create a form page to upload images to images folder and imagelocation will store information for the pathname where the image will be located ( will be used for display image in future) the code below does not have any error when … ![]() | |
Hi I've have a Windows form application, that provieds users to add/see and search new items, items are saved into a text file with a help of streamreader/streamwriter. My application is almost finished, but i dont know how to make a search system. This is my application: [URL="http://www.youtube.com/watch?v=Idgw52iXLRk&feature=plcp&context=C352918eUDOEgsToPDskIF-q5mZ0uP5UIRlBTolHbg"]http://www.youtube.com/watch?v=Idgw52iXLRk&feature=plcp&context=C352918eUDOEgsToPDskIF-q5mZ0uP5UIRlBTolHbg[/URL] Code: [COLOR="Red"]This … | |
Hi, I would like to create a web-based directory using GridView. The concept is same on Windows Explorer where there are Folders and Subfolders. The thing is, I will be using it on Binary files on the database. I'm not quite sure about the database structure if the user is … | |
I have a program that reads from a database, and then displays the results in a TextArea. Then when the user hists upload the file will be saved to a .txt file, and then uploaded to the database. But currently I am getting the original which looks like this in … | |
I make an image administrator with PHP / MYSQL / AJAX. I try upload image - success! After uploading image I refresh page. uploaded image has added to list. I press delete button - image removes from list. But why it doesn`t remove from mysql list??? File can be downloaded … | |
i use vb.net i trying to do a file upload, i want to image to save to image folder, however, the image don't know appear in the directory that i indicate if i click on "show all file", the image appear, but the image icon is blank or white like … | |
Not sure if I'm in the right forum or not, so if I should be asking elsewhere, please let me know! I'm new here :) I've been trying to delete this folder for some time now, I've researched a lot on the internet but so far I haven't been able … | |
My task is to: Pick 10 of my favourite NBA or NHL players from 2 top teams and display the player name, team name, points, rebounds, and assists for each of them. I then have to store this information as a table in a .txt file (This part is completed). … | |
hi, i would like to parse an input file (input.txt) into output file (output.txt) which i'll into excel. appreciate any advice on how to parse the input.txt into output.txt. thanks johnny | |
[CODE]PrintWriter file= new PrintWriter(new FileWriter("league1.txt",true)); file.print(value1); file.print(','); file.print(value2); file.print(','); file.print(value3); file.print(','); file.close();[/CODE] i m using this code to write in a file.. i m using this in servlet.value1, value2,value3 are Strings. and i wana to write it in file named "league1.txt". i have made this file in WEBPAGES folder in … |
The End.