7,373 Topics

Member Avatar for
Member Avatar for Daniel11

Hello Coders, I am working on ASP.NET Web Forms. In my page there is a GridView which should have a feature to upload multiple files at the same time to the server. Can you help me in implementing this feature. I want: 1. The files should be uploaded from the …

0
396
Member Avatar for Reverend Jim

Because Microsoft will be removing vbScript in the next version of Windows, I have been busy converting my utility vbScripts into Python. Part of this is a library of functions that I keep in `D:\include`. I'd like to maintain this system in Python, but the import process is rather clumsy. …

Member Avatar for bngwebguru
0
6K
Member Avatar for Stevewrites

Greetings Digital Natives. I'm excited join this platform. I am a sofware developer at [Timbu](http://www.timbu.com/south-africa) Hoping to learning and connecting with you guys. I want to really upgrade my tech skills. I have stayed along in front end. I need to do little of backend and move with likeminded fellow.

0
257
Member Avatar for DanielKeith
Member Avatar for Rio Vaks
0
255
Member Avatar for misstj555

Hello. I am trying to write a program that solves the "quadratic equation" when given variables "A", "B" and "C" and find the number of zero's. One code is the definition, the next is the implementation and the last code it just the test file. I need help running the …

Member Avatar for misstj555
0
315
Member Avatar for aaronmarinowork

I have been thinking about getting into web development. So far, i have been able to absord lots and lots of information about HTML, CSS and Java... But there is someone I know. He says that there are web developer secrets that I'll never be able to use and those …

Member Avatar for Kevin_51
-1
512
Member Avatar for Muktesh_1

Newbie here, Final year student of Electronics, I am learning python and want to move in the direction of web development! sounds quite strange to the filed i am in. i have been geting interested in working with API's and learning frontend using tkinter in python. Thanks!

Member Avatar for Dani
0
203
Member Avatar for Mahi_6

I need an answer for this question ( write 2 program that takes grade as input and display the range of marks use the select case and if() A. 90 to 100 B+ 80 to 89 B. 70 to 79 C 60 to 69 D 50 to 50 F. F

0
259
Member Avatar for prochotap

In desktop application used in technologies like C#, .Net and MySQL I import data from large file (which is about 37 MB) to datagridview. The table from Excel file is in below: ![B8UMq.png](/attachments/large/4/9bbe3c17922dd6159fbe781fae200a4e.png) After loading data from Excel to datagridview I'm inserting that data to MySQL database. Later when I …

Member Avatar for rproffitt
0
639
Member Avatar for deepak_48

i have define code File selectedFile = new File(selectedFilePath); when run and test is it file or not if (!selectedFile.isFile()){ runOnUiThread(new Runnable() { @Override public void run() { tvFileName.setText("Source File Doesn't Exist: " + selectedFilePath); } }); return 0; it give message source file does't exist; why give this message, …

Member Avatar for JamesCherrill
0
417
Member Avatar for Swetha_3

Hi, I have a .csv file in an AWS machine i wanted to convert that .csv file to .dat file? Can you please help me? Thansk, Swetha. G

Member Avatar for Nani_2
0
8K
Member Avatar for Dani

There are two ways to write to a file in PHP. You can either open a stream, and write to it in parts, or you can use `file_put_contents()` which is much more convenient, with the trade off being that it takes up much more memory, and is not ideal if …

0
2K
Member Avatar for Dani

We have a Swagger file for our API, but in our API documentation, we want to show valid responses for each endpoint. I coded up this little recursive function in PHP which takes our Swagger file and spits out a valid response. I use it as follows, for each individual …

0
2K
Member Avatar for Cyril1

hello, I am trying to write a vb.net programme that reads data from a file and do a count for each column as shown in the format below and also write to an output file. i am able to do the count but i am unable to write the output …

Member Avatar for rproffitt
0
1K
Member Avatar for Ionut cosmin

Hi guys i am new here..i am not have more experience with php.I have one good script ,this search on folder from name the file,example pdf file.Worked ok all goood but i need add the limit rezult for show because i search pdf name for example and this show me …

0
285
Member Avatar for chuckc

What is the best/easiest way to add a directory to 'Path' when starting a CMD (MS-DOS) window? It used to be possible to do this with an AUTOEXEC.BAT file in XP.

Member Avatar for chuckc
1
4K
Member Avatar for Reverend Jim

I tried to attach a file to a post by clicking the attachment icon and the file upload dialog did not show. I tried several times with no luck.

Member Avatar for Reverend Jim
0
3K
Member Avatar for Pandatron03

Hiya, looking for some help on this bit of code: def save(x,y,z): user=x yourinventory=y score=z allinvent=[] allscore=[] with open("Inventory.txt","r+")as inventory: for line in inventory: allinvent.append(line.strip().split(',')) allinvent.append("\n") for line in allinvent: if (line[0]==yourinventory): allinvent.append(yourinventory) allinvent.pop(line[0:8]) print(allinvent) break inventory.append(allinvent) inventory.close I'm currently working on saving things like inventory, and I'm not sure …

0
226
Member Avatar for sashika_sur

I'm recently trying to upload images without page refreshing. To do that I had identify ajax. My server side programing language is php. So I tried and success with it, but it's refreshing page. So I change that code after do research. But it shows error. Please help me with …

Member Avatar for Dani
0
466
Member Avatar for str91

hi i'm working with joomla and virtuemart component button in virtueMart don't have value : <input type="button" class="quantity-controls quantity-plus"> actually i want to add : value="+" in button but i have a problem . when i click inspect on browser , i can't find path address for code in my …

Member Avatar for Dani
0
402
Member Avatar for paulkd

...was asked for some php file upload code, so I thought I would post some stripped down, barebones code that I use in admin/dashboard pages to add/change images associated with products. Please see attached image for folder setup. The code uses the [jQuery Form](http://malsup.com/jquery/form/) plugin by Mike Alsup. **index.php** has …

Member Avatar for NaReSh_12
1
11K
Member Avatar for ammysh

Hi, im still new in c++ so i'm happy if anyone can help me Hi, is anyone know how to search two text file and the output will be - show which text file - line number - the word itself currently what i did is i need the user …

Member Avatar for AndrisP
0
358
Member Avatar for jjsulzer

Hi all, I am working on a project that should take all the data from file redirect and write them to a new file. Here is what I have: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "node.h" #include "tree.h" #define TRUE 0 #define FALSE 1 #define stdin stdin …

Member Avatar for Reverend Jim
1
3K
Member Avatar for sadada

## Hey, ## I crated a program which can search a text for a string and gives you every line which conatins that string back. Now I want to create another text file with the output. But I cant get it to work. Actually I have no problems with creating …

0
369
Member Avatar for EddiRae

Hi, I have checked all the prior forum questions on this topic, but none of the options seem to be working for me. I am creating an output file that goes into a specific folder for getting MP3 file information. When I run inside of Visual Studio Community 15, it …

Member Avatar for EddiRae
0
1K
Member Avatar for joshi1984

Hello, i got a table in Excel (or exported to CSV). There are 3 columns (1. column = specification / 2. columns = value1 / 3. column = value2). On my vb.net form i got a textbox, 2 labels and a button. If i write in in the textbox "5" …

Member Avatar for Ella34
0
5K
Member Avatar for JACK_49

Hello guys I'm trying to read a file copy content into a new file to a random directory: <?php error_reporting(E_ALL); $dirname = uniqid(); mkdir($dirname); $newFileName = '/'.$dirname.'/newfile.txt'; $newFileContent = 'someinfoinfile.txt'; if (file_put_contents($newFileName, $newFileContent) !== false) { echo "File created (" . basename($newFileName) . ")"; } else { echo "Cannot create …

Member Avatar for AndrisP
0
273
Member Avatar for SaRaVaNaN_2

import csv import xlwt import os import sys #import openpyxl # Look for input file in same location as script file: inputfilename = os.path.join(os.path.dirname(sys.argv[0]), 'book2.txt') # Strip off the path basefilename = os.path.basename(inputfilename) # Strip off the extension basefilename_noext = os.path.splitext(basefilename)[0] # Get the path of the input file as …

0
357
Member Avatar for Jesse_15

I would like help with creating a form that when submitted, creates a webpage which is able to be edited by whomever submits the form; I would also like this url/link to be added to a database.

Member Avatar for rproffitt
0
416
Member Avatar for SpottyBlue

Hi, Me and my colleague are trying to fix an error when we are testing to upload the file to the storage in our PHP test project. The error is called: **FatalThrowableError (E_ERROR): Call to a member function getRealPath() on null** ![0CtiPf.png](/attachments/large/4/a9bee726794f71d1f2c22c42f3f93093.png) We are using Laravel to create a new …

0
300
Member Avatar for Moha_3

HEEY EVERYONE ,hope you're doing well my teacher assigned us a homework wich is to create a program with C; this program takes as input a text file with some data in it .every line of the text file contains the ID of an employee and it's name and salary …

Member Avatar for Reverend Jim
0
526
Member Avatar for sabrin4

Initially, I've a simple program to print out the whole output to the console. **Initial Code to display output in the console only** import os, subprocess print("1. Before") os.system('ver') subprocess.run('whoami') print('\n2. After') **Output in console** 1. Before Microsoft Windows [Version 10] user01 2. After Then, I decided to have a …

Member Avatar for rproffitt
0
520
Member Avatar for Amruta Sriram

If Anyone Knows , can you please help me how to import the text file to JTable by using JFilechooser ? Even the text file contains the specific charecters line length eg: idUsernamePasswordEmailAgeGender ( ID = 2 Chars, Username = 10 chars ( if username not having 10 chars means, …

Member Avatar for JamesCherrill
-1
641
Member Avatar for Helen_7

If you are using your iPhone XS as a music player, then you probably know how to transfer music from computer to iPhone. The default way of transferring between your PC and iPhone is by using iTunes. This is the most common way of sharing music and other media to …

0
2K
Member Avatar for sabiut

hi, i am trying to read from a text file and store the data in an array but i don't know how to get started with my code. can someone please get me started here. i have start with the code for locating the file, but i am having difficulty …

Member Avatar for LordPike
0
13K
Member Avatar for ranjanj2me

Sir can you please send me an example to upload an image to the server (with user defined file name and display message if name exist) at specific folder "images" and save its path to the mysql database. And again display the images uploaded on the server folder by using …

Member Avatar for happygeek
0
5K
Member Avatar for Akhaylin

I am tasked with this excercise: Edit the Python file processData (or use it as a guide when you create a new Python file) so it reads in the data from population.txt, checks to make sure the file exists and is in the right format (if it isn’t throw an …

0
269
Member Avatar for Nivek90

I have a file that contains flow statistics from a switch. This is a big file with alot of values I would like to print out the statistics based on user input. I'm having a hard time to figure out which way is the most efficient, using a dictionary or …

Member Avatar for Peleg
0
382
Member Avatar for 1981191919

I am required to download different type of files from a spesicif folder using ajax .The problem is that when execute the code I get this message [this](https://ibb.co/eaXpGz) I have looked for the similar tutorials I coundnt find a solution Could you please help This my index.php file <!DOCTYPE html> …

Member Avatar for jkon
0
4K
Member Avatar for Sam_52

I'm trying to count the vowels in a lengthy text, provided by a .txt file. I can successfully open the file and echo it out into the browser. What I can't seem to do is get my script to do the actual vowel counting and I'm not entirely sure why. …

Member Avatar for alan.davies
0
1K
Member Avatar for davBro

Hi, I haven't been on this community forum for quite a while. I have been getting an annoying problem with my file uploads (i.e. pdf documents), to my remote server. The upload_file form was working great for a long time, but just recently it stopped working. The problem there, was, …

0
524
Member Avatar for Jag_1

I am trying to process the data in a single file . i have to read the file and create a hash structure,get the value of fruitname append it to fruitCount and fruitValue and delete the line fruitName and write the entire output after the change is done.Given below is …

Member Avatar for 2teez
0
1K
Member Avatar for r3bol

I made a scraper for a web site, but I'm having problems runninf my code... #!/usr/bin/env python from bs4 import BeautifulSoup import urllib2 import re # Get the links... html = urllib2.urlopen('http://www.blah.fi/asdf.html').read() links = re.findall(r'''<a\s+.*?href=['"](.*?)['"].*?(?:</a|/)>''', html, re.I) links_range = links[6:len(links)] # Scrape and append the output... f = open("test.html", "a") …

Member Avatar for happygeek
0
6K
Member Avatar for Rob Alice

Slideshare is one of the best social media site, where many business people are visiting heavily. So its a good chance to promote a business and get a business deal of B2B and B2C. 1. Upload only quality presentations. 2. Choose a memorable title and write an impressive description 3. …

Member Avatar for anushakumari
0
553
Member Avatar for Reverend Jim

vb.net 2010 Windows Pro 7 ## Create a Video Library with an Embedded Windows Media Player ## I have close to 400 video clips in my home movie library. In order to quickly locate any given video I have added certain words into the file names. Even so, locating specific …

Member Avatar for Reverend Jim
1
3K
Member Avatar for Reverend Jim

vbScript - Create a Log File Using vbScript Classes Before I retired I was responsible for most of the corporate data plumbing at our control centre. All of the plumbing was written in vbScript. As any maintenance programmer knows, log files are a vital key in identifying and fixing problems. …

0
3K
Member Avatar for DAVID_135

I want the method to append a new person object according to the form each time the save button is clicked, and read the new content of the file each time the retrieve button is clicked, unfortunately it only reads the last entered person. am now here for help package …

Member Avatar for JamesCherrill
0
586
Member Avatar for Reverend Jim

##vbScript - Run an External Program and Capture the Output Please see my post [vbScript - The Basics](https://www.daniweb.com/programming/threads/516400/vbscript-the-basics) for more details on vbScript. When you want to execute an external program for a particular result (such as resizing an image, as shown in a previous snippet) you can simply use …

Member Avatar for Reverend Jim
1
12K
Member Avatar for Reverend Jim

##vbScript - Identify File by Perceived Type Please see my post [vbScript - The Basics](https://www.daniweb.com/programming/threads/516400/vbscript-the-basics) for more details on vbScript. There are times when you want to operate on all files of a given type. For example, you may want to enumerate all files in a folder or a drive …

1
936
Member Avatar for Reverend Jim

##vbScript - Browse for Folder or File Please see my post [vbScript - The Basics](https://www.daniweb.com/programming/threads/516400/vbscript-the-basics) for more details on vbScript. Some scripts need input (other than from the command line) from the user. This can be read from the console (StdIn) or from a pop-up textbox (InputBox). This is fine …

0
14K

The End.